@matheusbsbs / matheus-bagliano / commits / c07838371b
Fork 0

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>

SZEDER Gábor committed Nov 27, 2008 at 14:35 UTC c07838371b116251b6c4bc62a2ba64109baf74f1
1 file changed +1 -1
contrib/completion/git-completion.bash
+1 -1
@@ -1344,7 +1344,7 @@ _git_revert ()
1344 return
1345 ;;
1346 esac
1347 - COMPREPLY=()
1347 + __gitcomp "$(__git_refs)"
1348 }
1349
1350 _git_rm ()