Skip to content

Commit 76ab5b0

Browse files
authored
Remove deprecated --redirect-stdout in git branch cleanup (nushell#827)
1 parent 5782e2b commit 76ab5b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/git/git_branch_cleanup.nu

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export def "git branch-cleanup" [
5656

5757
# The current branch name
5858
def current_branch [] {
59-
run-external --redirect-stdout "git" "branch" "--show-current"
59+
run-external "git" "branch" "--show-current"
6060
| into string
6161
| str trim
6262
}
@@ -85,14 +85,14 @@ def get_default_branch [
8585
$upstream
8686
]
8787

88-
run-external --redirect-stdout "git" "symbolic-ref" ...$args
88+
run-external "git" "symbolic-ref" ...$args
8989
| str trim
9090
| path basename
9191
}
9292

9393
# Get the local set of branches to always keep
9494
def get_keep [] {
95-
let keep = run-external --redirect-stdout "git" "config" "--local" "--get" "branch-cleanup.keep"
95+
let keep = run-external "git" "config" "--local" "--get" "branch-cleanup.keep"
9696

9797
if ( $keep | is-empty ) {
9898
return []
@@ -139,7 +139,7 @@ def list_merged [
139139
]
140140
)
141141

142-
run-external --redirect-stdout "git" "branch" ...$args
142+
run-external "git" "branch" ...$args
143143
| lines
144144
| filter {|branch|
145145
$keep
@@ -150,7 +150,7 @@ def list_merged [
150150
}
151151

152152
def remotes [] {
153-
run-external --redirect-stdout "git" "remote" "-v"
153+
run-external "git" "remote" "-v"
154154
| parse "{value}\t{description} ({operation})"
155155
| select value description
156156
| uniq

0 commit comments

Comments
 (0)