threads / patch / 55804

patchgit-completion.bash: Add --anchored

Subject: [PATCH] git-completion.bash: Add --anchored

## tl;dr

2 messages between May 30, 2021 and May 31, 2021. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Thomas Braun· May 30, 2021, 11:31 UTC · lore

This flag was introduced in 2477ab2e (diff: support anchoring line(s), 2017-11-27) but back then, the bash completion script did not learn about the new flag. Add it.

Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
---
 contrib/completion/git-completion.bash | 1 +
 1 file changed, 1 insertion(+)
Show changes to contrib/completion/git-completion.bash +1 −0
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 3c5739b905..4dd268470a 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1729,6 +1729,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
 			--indent-heuristic --no-indent-heuristic
 			--textconv --no-textconv
 			--patch --no-patch
+			--anchored=
 "
 
 __git_diff_difftool_options="--cached --staged --pickaxe-all --pickaxe-regex
-- 
2.31.1
Junio C Hamano· May 31, 2021, 05:24 UTC · re: Thomas Braun · lore

Re: [PATCH] git-completion.bash: Add --anchored

Thomas Braun <thomas.braun@virtuell-zuhause.de> writes:
> Subject: Re: [PATCH] git-completion.bash: Add --anchored
	completion: add --anchored to diff's options 
Show 6 quoted lines
> This flag was introduced in 2477ab2e (diff: support anchoring line(s),
> 2017-11-27) but back then, the bash completion script did not learn
> about the new flag. Add it.
>
> Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
> ---
OK.  Thanks.
Show 15 quoted lines
>  contrib/completion/git-completion.bash | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 3c5739b905..4dd268470a 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1729,6 +1729,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
>  			--indent-heuristic --no-indent-heuristic
>  			--textconv --no-textconv
>  			--patch --no-patch
> +			--anchored=
>  "
>  
>  __git_diff_difftool_options="--cached --staged --pickaxe-all --pickaxe-regex

← back to recent threads