mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Fix git branch cleanup for nushell version 0.91+ (#799)
This commit is contained in:
parent
707cda3450
commit
3cee758551
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ def get_default_branch [
|
|||
$upstream
|
||||
]
|
||||
|
||||
run-external --redirect-stdout "git" "symbolic-ref" $args
|
||||
run-external --redirect-stdout "git" "symbolic-ref" ...$args
|
||||
| str trim
|
||||
| path basename
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ def list_merged [
|
|||
]
|
||||
)
|
||||
|
||||
run-external --redirect-stdout "git" "branch" $args
|
||||
run-external --redirect-stdout "git" "branch" ...$args
|
||||
| lines
|
||||
| filter {|branch|
|
||||
$keep
|
||||
|
@ -167,5 +167,5 @@ def switch_branch [
|
|||
$branch
|
||||
]
|
||||
|
||||
run-external "git" "switch" $args
|
||||
run-external "git" "switch" ...$args
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue