mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 15:17:47 +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
|
$upstream
|
||||||
]
|
]
|
||||||
|
|
||||||
run-external --redirect-stdout "git" "symbolic-ref" $args
|
run-external --redirect-stdout "git" "symbolic-ref" ...$args
|
||||||
| str trim
|
| str trim
|
||||||
| path basename
|
| path basename
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ def list_merged [
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
run-external --redirect-stdout "git" "branch" $args
|
run-external --redirect-stdout "git" "branch" ...$args
|
||||||
| lines
|
| lines
|
||||||
| filter {|branch|
|
| filter {|branch|
|
||||||
$keep
|
$keep
|
||||||
|
@ -167,5 +167,5 @@ def switch_branch [
|
||||||
$branch
|
$branch
|
||||||
]
|
]
|
||||||
|
|
||||||
run-external "git" "switch" $args
|
run-external "git" "switch" ...$args
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue