mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Minor refactoring to __fish_git_local_branches
This commit is contained in:
parent
7e3d3cc30f
commit
f0f21bdecd
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ function __fish_git_branches
|
|||
end
|
||||
|
||||
function __fish_git_local_branches
|
||||
__fish_git for-each-ref --format='%(refname)' refs/heads/ refs/remotes/ 2>/dev/null \
|
||||
| string replace -rf '^refs/heads/(.*)$' '$1\tLocal Branch'
|
||||
__fish_git for-each-ref --format='%(refname:strip=2)' refs/heads/ 2>/dev/null \
|
||||
| string replace -rf '.*' '$0\tLocal Branch'
|
||||
end
|
||||
|
||||
function __fish_git_unique_remote_branches
|
||||
|
|
Loading…
Reference in a new issue