summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ff61c2)
raw | patch | inline | side by side (parent: 4ff61c2)
author | SZEDER Gábor <szeder@ira.uka.de> | |
Thu, 28 Jan 2010 01:05:55 +0000 (02:05 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 28 Jan 2010 22:22:37 +0000 (14:22 -0800) |
... and it will offer refs unless after -m or -F, because these two
options require a non-ref argument.
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>
options require a non-ref argument.
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 96517204105425ad15049d3bc713e3fbc8d86baa..8b56c34bde2227e7facfc8f96ceec7f912237189 100755 (executable)
__gitcomp "--tags --all --stdin"
}
+_git_notes ()
+{
+ local subcommands="edit show"
+ if [ -z "$(__git_find_on_cmdline "$subcommands")" ]; then
+ __gitcomp "$subcommands"
+ return
+ fi
+
+ case "${COMP_WORDS[COMP_CWORD-1]}" in
+ -m|-F)
+ COMPREPLY=()
+ ;;
+ *)
+ __gitcomp "$(__git_refs)"
+ ;;
+ esac
+}
+
_git_pull ()
{
__git_complete_strategy && return
merge-base) _git_merge_base ;;
mv) _git_mv ;;
name-rev) _git_name_rev ;;
+ notes) _git_notes ;;
pull) _git_pull ;;
push) _git_push ;;
rebase) _git_rebase ;;