bash completion: refactor --strategy completion
authorJay Soffian <jaysoffian@gmail.com>
Fri, 6 Mar 2009 16:30:44 +0000 (11:30 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Mar 2009 04:23:09 +0000 (20:23 -0800)
commit3c7b480a1cf6e1a1c73b4edde5d8cf0ac0c8111c
treeb41687400441b03d39efd429dcd7517f815bcfeb
parent52d5c3b5b22b6a672ace19f631768a63bb6a2250
bash completion: refactor --strategy completion

The code to complete --strategy was duplicated between _git_rebase and
_git_merge, and is about to gain a third caller (_git_pull). This patch
factors it into its own function.

Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash