mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:31:09 +08:00
Minor refactoring to __fish_git_local_branches
This commit is contained in:
parent
7e3d3cc30f
commit
f0f21bdecd
@ -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…
x
Reference in New Issue
Block a user