threads / patch / 13002

patchAdd prefix oriented completions for diff and format-patch commands.

Subject: [PATCH] Add prefix oriented completions for diff and format-patch commands.

## tl;dr

2 messages between Apr 6, 2008 and Apr 6, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Pascal Obry· Apr 6, 2008, 16:56 UTC · lore
Signed-off-by: Pascal Obry <pascal@obry.net>
---
 contrib/completion/git-completion.bash |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Show changes to contrib/completion/git-completion.bash +4 −1
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 791e30f..618d278 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -639,7 +639,9 @@ _git_diff ()
 			--find-copies-harder --pickaxe-all --pickaxe-regex
 			--text --ignore-space-at-eol --ignore-space-change
 			--ignore-all-space --exit-code --quiet --ext-diff
-			--no-ext-diff"
+			--no-ext-diff
+			--no-prefix --src-prefix= --dst-prefix=
+			"
 		return
 		;;
 	esac
@@ -696,6 +698,7 @@ _git_format_patch ()
 			--full-index --binary
 			--not --all
 			--cover-letter
+			--no-prefix --src-prefix= --dst-prefix=
 			"
 		return
 		;;
-- 
1.5.5.rc2.6.gf58d
Shawn O. Pearce· Apr 6, 2008, 19:45 UTC · re: Pascal Obry · lore

Re: [PATCH] Add prefix oriented completions for diff and format-patch commands.

Pascal Obry <pascal.obry@gmail.com> wrote:
> Signed-off-by: Pascal Obry <pascal@obry.net>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Show 24 quoted lines
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 791e30f..618d278 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -639,7 +639,9 @@ _git_diff ()
>  			--find-copies-harder --pickaxe-all --pickaxe-regex
>  			--text --ignore-space-at-eol --ignore-space-change
>  			--ignore-all-space --exit-code --quiet --ext-diff
> -			--no-ext-diff"
> +			--no-ext-diff
> +			--no-prefix --src-prefix= --dst-prefix=
> +			"
>  		return
>  		;;
>  	esac
> @@ -696,6 +698,7 @@ _git_format_patch ()
>  			--full-index --binary
>  			--not --all
>  			--cover-letter
> +			--no-prefix --src-prefix= --dst-prefix=
>  			"
>  		return
>  		;;
> -- 
-- 
Shawn.

← back to recent threads