git completion: Show commits for revert and tag --contains

This commit is contained in:
Fabian Homborg 2016-05-11 14:51:54 +02:00
parent 4244a6e6fe
commit a7605d584b

View file

@ -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