mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
git completion: Ignore stderr for all commands
Might print unrelated crap if we try to complete while not in a git repository
This commit is contained in:
parent
b231ab7238
commit
00556734bc
1 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ function __fish_git_branches
|
|||
end
|
||||
|
||||
function __fish_git_tags
|
||||
command git tag
|
||||
command git tag ^/dev/null
|
||||
end
|
||||
|
||||
function __fish_git_heads
|
||||
|
@ -15,7 +15,7 @@ function __fish_git_heads
|
|||
end
|
||||
|
||||
function __fish_git_remotes
|
||||
command git remote
|
||||
command git remote ^/dev/null
|
||||
end
|
||||
|
||||
function __fish_git_modified_files
|
||||
|
@ -89,14 +89,14 @@ end
|
|||
|
||||
function __fish_git_complete_stashes
|
||||
set -l IFS ':'
|
||||
command git stash list --format=%gd:%gs | while read -l name desc
|
||||
command git stash list --format=%gd:%gs ^/dev/null | while read -l name desc
|
||||
echo $name\t$desc
|
||||
end
|
||||
end
|
||||
|
||||
function __fish_git_aliases
|
||||
set -l IFS \n
|
||||
command git config -z --get-regexp '^alias\.' | while read -lz key value
|
||||
command git config -z --get-regexp '^alias\.' ^/dev/null | while read -lz key value
|
||||
begin
|
||||
set -l IFS "."
|
||||
echo -n $key | read -l _ name
|
||||
|
|
Loading…
Reference in a new issue