git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-completion.bash: Add --anchored
@ 2021-05-30 11:31 Thomas Braun
  2021-05-31  5:24 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Braun @ 2021-05-30 11:31 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Denton Liu, Jeff King

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(+)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git-completion.bash: Add --anchored
  2021-05-30 11:31 [PATCH] git-completion.bash: Add --anchored Thomas Braun
@ 2021-05-31  5:24 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2021-05-31  5:24 UTC (permalink / raw)
  To: Thomas Braun; +Cc: git, Denton Liu, Jeff King

Thomas Braun <thomas.braun@virtuell-zuhause.de> writes:

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

	completion: add --anchored to diff's options 

> 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.

>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-31  5:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 11:31 [PATCH] git-completion.bash: Add --anchored Thomas Braun
2021-05-31  5:24 ` Junio C Hamano

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).