Skip to content

Commit c078383

Browse files
szedergitster
authored andcommitted
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 <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d8163f commit c078383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ _git_revert ()
13441344
return
13451345
;;
13461346
esac
1347-
COMPREPLY=()
1347+
__gitcomp "$(__git_refs)"
13481348
}
13491349

13501350
_git_rm ()

0 commit comments

Comments
 (0)