mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 14:51:15 -03:00
Remove invalid completion for git-describe
The `__fish_git_unique_remote_branches` function isn't applicable here since `git describe` won't know what to do with a remote branch without the remote prefix. For example, if there is a branch called `origin/my-branch`, you can't execute `git describe my-branch` until the branch is checked out locally. In other words: Good: `git describe origin/my-branch` Bad: `git describe my-branch` Good: `git switch my-branch; git describe my-branch`
This commit is contained in:
committed by
Johannes Altmanninger
parent
7d5c64a731
commit
c9f397b968
@@ -1074,7 +1074,6 @@ complete -f -c git -n '__fish_git_using_command count-objects' -s H -l human-rea
|
||||
complete -c git -n __fish_git_needs_command -a describe -d 'Give an object a human readable name based on an available ref'
|
||||
complete -k -f -c git -n '__fish_git_using_command describe' -a '(__fish_git_tags)' -d Tag
|
||||
complete -k -f -c git -n '__fish_git_using_command describe' -a '(__fish_git_branches)'
|
||||
complete -k -f -c git -n '__fish_git_using_command describe' -a '(__fish_git_unique_remote_branches)' -d 'Unique Remote Branch'
|
||||
complete -k -f -c git -n '__fish_git_using_command describe' -a '(__fish_git_heads)' -d Head
|
||||
complete -f -c git -n '__fish_git_using_command describe' -l dirty -d 'Describe the state of the working tree, append dirty if there are local changes'
|
||||
complete -f -c git -n '__fish_git_using_command describe' -l broken -d 'Describe the state of the working tree, append -broken instead of erroring'
|
||||
|
||||
Reference in New Issue
Block a user