Browse Source

bash: offer refs instead of filenames for 'git revert'

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>
maint
SZEDER Gábor 16 years ago committed by Junio C Hamano
parent
commit
c07838371b
  1. 2
      contrib/completion/git-completion.bash

2
contrib/completion/git-completion.bash

@ -1344,7 +1344,7 @@ _git_revert () @@ -1344,7 +1344,7 @@ _git_revert ()
return
;;
esac
COMPREPLY=()
__gitcomp "$(__git_refs)"
}

_git_rm ()

Loading…
Cancel
Save