Teach bash how to complete git-format-patch.
commitf53352fbaf2bcc6d209388bb2a68d888ceb8014e
authorShawn O. Pearce <spearce@spearce.org>
Mon, 27 Nov 2006 08:41:43 +0000 (27 03:41 -0500)
committerJunio C Hamano <junkio@cox.net>
Mon, 27 Nov 2006 20:09:58 +0000 (27 12:09 -0800)
tree6450bf5c21fef79e4c8d59608b0e5fc9c6f68dba
parentd3d717a4ad0c8d7329e79f7d0313baec57c6b585
Teach bash how to complete git-format-patch.

Provide completion for currently known long options supported by
git-format-patch as well as the revision list specification argument,
which is generally either a refname or in the form a..b.

Since _git_log was the only code that knew how to complete a..b, but
we want to start adding option support to _git_log also refactor the
a..b completion logic out into its own function.

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