From a7605d584b91e0caf7fa5454dbd3fa1e4204dc7e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 11 May 2016 14:51:54 +0200 Subject: git completion: Show commits for revert and tag --contains --- share/completions/git.fish | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share/completions') diff --git a/share/completions/git.fish b/share/completions/git.fish index f8c64458..ac4d8249 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -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 -- cgit v1.2.3