bash: Support internal revlist options better.
format-patch/log/whatchanged all take --not and --all as options to the internal revlist process. So these should be supported as possible completions. gitk takes anything rev-list/log/whatchanged takes, so we should use complete_revlist to handle its options. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
b3391775e8
commit
ec80489132
|
@ -494,6 +494,7 @@ _git_format_patch ()
|
||||||
--signoff
|
--signoff
|
||||||
--in-reply-to=
|
--in-reply-to=
|
||||||
--full-index --binary
|
--full-index --binary
|
||||||
|
--not --all
|
||||||
"
|
"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -532,6 +533,7 @@ _git_log ()
|
||||||
--author= --committer= --grep=
|
--author= --committer= --grep=
|
||||||
--all-match
|
--all-match
|
||||||
--pretty= --name-status --name-only
|
--pretty= --name-status --name-only
|
||||||
|
--not --all
|
||||||
"
|
"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -898,7 +900,7 @@ _gitk ()
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
__gitcomp "$(__git_refs)"
|
__git_complete_revlist
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -o default -o nospace -F _git git
|
complete -o default -o nospace -F _git git
|
||||||
|
|
Loading…
Reference in New Issue