threads / patch / 22058

patchAdd completion for git-svn mkdirs,reset,and gc

Subject: [PATCH] Add completion for git-svn mkdirs,reset,and gc

## tl;dr

3 messages between Dec 30, 2009 and Dec 30, 2009. Diffs are folded; open one to read it.

replies: 2people: 3as markdown or json

Robert Zeh· Dec 30, 2009, 00:58 UTC · lore
Signed-off-by: Robert Zeh <robert.a.zeh@gmail.com>
---
contrib/completion/git-completion.bash |    7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Show changes to contrib/completion/git-completion.bash +5 −2
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index fbfa5f2..c65462c 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2022,7 +2022,7 @@ _git_svn ()
		init fetch clone rebase dcommit log find-rev
		set-tree commit-diff info create-ignore propget
		proplist show-ignore show-externals branch tag blame
-		migrate
+		migrate mkdirs reset gc
		"
	local subcommand="$(__git_find_on_cmdline "$subcommands")"
	if [ -z "$subcommand" ]; then
@@ -2069,7 +2069,7 @@ _git_svn ()
			__gitcomp "--stdin $cmt_opts $fc_opts"
			;;
		create-ignore,--*|propget,--*|proplist,--*|show-ignore,--*|\
-		show-externals,--*)
+		show-externals,--*|mkdirs,--*)
			__gitcomp "--revision="
			;;
		log,--*)
@@ -2106,6 +2106,9 @@ _git_svn ()
				--no-auth-cache --username=
				"
			;;
+		reset,--*)
+			__gitcomp "--revision= --parent"
+			;;
		*)
			COMPREPLY=()
			;;
-- 
1.6.6.rc3.dirty
Shawn O. Pearce· Dec 30, 2009, 00:59 UTC · re: Robert Zeh · lore

Re: [PATCH] Add completion for git-svn mkdirs,reset,and gc

Robert Zeh <robert.a.zeh@gmail.com> wrote:
Show 5 quoted lines
> 
> Signed-off-by: Robert Zeh <robert.a.zeh@gmail.com>
> ---
> contrib/completion/git-completion.bash |    7 +++++--
> 1 files changed, 5 insertions(+), 2 deletions(-)
Acked-by: Shawn O. Pearce <spearce@spearce.org>
 
-- 
Shawn.
Junio C Hamano· Dec 30, 2009, 07:43 UTC · re: Shawn O. Pearce · lore

Re: [PATCH] Add completion for git-svn mkdirs,reset,and gc

"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 11 quoted lines
> Robert Zeh <robert.a.zeh@gmail.com> wrote:
>> 
>> Signed-off-by: Robert Zeh <robert.a.zeh@gmail.com>
>> ---
>> contrib/completion/git-completion.bash |    7 +++++--
>> 1 files changed, 5 insertions(+), 2 deletions(-)
>
> Acked-by: Shawn O. Pearce <spearce@spearce.org>
>  
> -- 
> Shawn.
Thanks.

Robert, if you are planning to be a regular contributor, please check your MUA settings, and next time, please first send a patch to yourself and try running "git am" on it to make sure it applies. Your patch was seriously whitespace damaged (all the leading SP on the context lines were stripped).

← back to recent threads