author | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Oct 2011 04:37:13 +0000 (21:37 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Oct 2011 04:37:13 +0000 (21:37 -0700) |
* sg/completion:
completion: unite --format and --pretty for 'log' and 'show'
completion: unite --reuse-message and --reedit-message for 'notes'
completion: unite --format and --pretty for 'log' and 'show'
completion: unite --reuse-message and --reedit-message for 'notes'
1 | 2 | |||
---|---|---|---|---|
contrib/completion/git-completion.bash | patch | | diff1 | | diff2 | | blob | history |
diff --cc contrib/completion/git-completion.bash
index 344119b1b7be234b1c4a87148ce5c0d4ca0d3225,5c649c6f46524dab6e43425a60cdf29876d12763..888e8e10ccd932df3aa8f30a3d83441d5485fc30
if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge"
fi
- local cur
- _get_comp_words_by_ref -n =: cur
case "$cur" in
- --pretty=*)
+ --pretty=*|--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
- " "" "${cur##--pretty=}"
- return
- ;;
- --format=*)
- __gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
- " "" "${cur##--format=}"
+ " "" "${cur#*=}"
return
;;
--date=*)
{
__git_has_doubledash && return
- local cur
- _get_comp_words_by_ref -n =: cur
case "$cur" in
- --pretty=*)
- __gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
- " "" "${cur##--pretty=}"
- return
- ;;
- --format=*)
+ --pretty=*|--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
- " "" "${cur##--format=}"
+ " "" "${cur#*=}"
return
;;
--*)