* [PATCH 2/2] completion: add bash completion for 'filter-branch'
@ 2017-01-09 8:56 Denton Liu
0 siblings, 0 replies; only message in thread
From: Denton Liu @ 2017-01-09 8:56 UTC (permalink / raw)
To: git; +Cc: spearce
Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
contrib/completion/git-completion.bash | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 51832108e..b4cbea5c7 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1297,6 +1297,23 @@ _git_fetch ()
__git_complete_remote_or_refspec
}
+__git_filter_branch_options="
+ --env-filter --tree-filter --index-filter --parent-filter --msg-filter
+ --commit-filter --tag-name-filter --subdirectory-filter --prune-empty
+ --original --force
+"
+_git_filter_branch ()
+{
+ __git_has_doubledash && __git_complete_rev_list_command && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "$__git_filter_branch_options"
+ return
+ ;;
+ esac
+}
+
__git_format_patch_options="
--stdout --attach --no-attach --thread --thread= --no-thread
--numbered --start-number --numbered-files --keep-subject --signoff
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-09 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09 8:56 [PATCH 2/2] completion: add bash completion for 'filter-branch' Denton Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).