summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d8163f)
raw | patch | inline | side by side (parent: 8d8163f)
author | SZEDER Gábor <szeder@ira.uka.de> | |
Thu, 27 Nov 2008 13:35:53 +0000 (14:35 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 28 Nov 2008 02:35:07 +0000 (18:35 -0800) |
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>
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>
contrib/completion/git-completion.bash | patch | blob | history |
index bec09bdd62130a03dc2e95874a54e339ecf5e2d4..554a03ff4fbc61e8b02b6010c9ffb9fad632f195 100755 (executable)
return
;;
esac
- COMPREPLY=()
+ __gitcomp "$(__git_refs)"
}
_git_rm ()