Code

Teach bash how to complete git-rebase.
authorShawn O. Pearce <spearce@spearce.org>
Mon, 27 Nov 2006 08:42:07 +0000 (03:42 -0500)
committerJunio C Hamano <junkio@cox.net>
Mon, 27 Nov 2006 20:11:07 +0000 (12:11 -0800)
commit61d926a3cdb8f03147580de53e448fc22370cbb1
tree7913242c12d11df1e983ef0c3569bf4f11a4bb7a
parent1273231ee9c7a576a3654d8f2ba77267393564ab
Teach bash how to complete git-rebase.

As git-rebase is a popular command bash should know how to complete
reference names and its long options.  We only support completions
which make sense given the current state of the repository, that
way users don't get shown --continue/--skip/--abort on the first
execution.

Also added support for long option --strategy to git-merge, as I
missed that option earlier and just noticed it while implementing
git-rebase.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/completion/git-completion.bash