mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
git completion: Show commits for revert and tag --contains
This commit is contained in:
parent
4244a6e6fe
commit
a7605d584b
1 changed files with 2 additions and 0 deletions
|
@ -470,6 +470,7 @@ complete -f -c git -n '__fish_git_using_command reset' -a '(__fish_git_staged_fi
|
|||
|
||||
### revert
|
||||
complete -f -c git -n '__fish_git_needs_command' -a revert -d 'Revert an existing commit'
|
||||
complete -f -c git -n '__fish_git_using_command revert' -a '(__fish_git_commits)'
|
||||
# TODO options
|
||||
|
||||
### rm
|
||||
|
@ -502,6 +503,7 @@ complete -f -c git -n '__fish_git_using_command tag' -s d -l delete -d 'Remove a
|
|||
complete -f -c git -n '__fish_git_using_command tag' -s v -l verify -d 'Verify signature of a tag'
|
||||
complete -f -c git -n '__fish_git_using_command tag' -s f -l force -d 'Force overwriting exising tag'
|
||||
complete -f -c git -n '__fish_git_using_command tag' -s l -l list -d 'List tags'
|
||||
complete -f -c git -n '__fish_git_using_command tag' -l contains -xa '(__fish_git_commits)' -d 'List tags that contain a commit'
|
||||
complete -f -c git -n '__fish_git_using_command tag; and __fish_contains_opt -s d' -a '(__fish_git_tags)' -d 'Tag'
|
||||
complete -f -c git -n '__fish_git_using_command tag; and __fish_contains_opt -s v' -a '(__fish_git_tags)' -d 'Tag'
|
||||
# TODO options
|
||||
|
|
Loading…
Reference in a new issue