mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
[completions/git] Remove unnecessary helper function
This commit is contained in:
parent
7b86062720
commit
fa665bd3c8
1 changed files with 2 additions and 5 deletions
|
@ -47,12 +47,9 @@ function __fish_git_tags
|
|||
command git tag --sort=-creatordate 2>/dev/null
|
||||
end
|
||||
|
||||
function __fish_git_dir
|
||||
command git rev-parse --git-dir 2>/dev/null
|
||||
end
|
||||
|
||||
function __fish_git_heads
|
||||
set -l gitdir (__fish_git_dir)
|
||||
set -l gitdir (command git rev-parse --git-dir 2>/dev/null)
|
||||
or return # No git dir, no need to even test.
|
||||
for head in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD
|
||||
if test -f $gitdir/$head
|
||||
echo $head
|
||||
|
|
Loading…
Reference in a new issue