Skip to content

Commit

Permalink
bash: offer refs instead of filenames for 'git revert'
Browse files Browse the repository at this point in the history
The completion script for 'git revert' currently offers options and
filenames.  However, 'git revert' doesn't take any filenames from the
command line, but a single commit.  Therefore, it's more sane to offer
refs instead.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
SZEDER Gábor authored and Junio C Hamano committed Nov 28, 2008
1 parent 8d8163f commit c078383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ _git_revert ()
return
;;
esac
COMPREPLY=()
__gitcomp "$(__git_refs)"
}

_git_rm ()
Expand Down

0 comments on commit c078383

Please sign in to comment.