Skip to content

Commit

Permalink
Merge branch 'tm/completion-commit-fixup-squash'
Browse files Browse the repository at this point in the history
* tm/completion-commit-fixup-squash:
  completion: commit --fixup and --squash
  completion: unite --reuse-message and --reedit-message handling
  • Loading branch information
Junio C Hamano committed Oct 18, 2011
2 parents cdc2b2f + 77653ab commit c795df7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1259,12 +1259,9 @@ _git_commit ()
" "" "${cur##--cleanup=}"
return
;;
--reuse-message=*)
__gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
return
;;
--reedit-message=*)
__gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
--reuse-message=*|--reedit-message=*|\
--fixup=*|--squash=*)
__gitcomp "$(__git_refs)" "" "${cur#*=}"
return
;;
--untracked-files=*)
Expand All @@ -1278,7 +1275,7 @@ _git_commit ()
--dry-run --reuse-message= --reedit-message=
--reset-author --file= --message= --template=
--cleanup= --untracked-files --untracked-files=
--verbose --quiet
--verbose --quiet --fixup= --squash=
"
return
esac
Expand Down

0 comments on commit c795df7

Please sign in to comment.