git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
May 31, 2021, 05:24 UTC
Message-ID
<xmqqpmx7wk4c.fsf@gitster.g>
In-Reply-To
<20210530113135.5778-1-thomas.braun@virtuell-zuhause.de>
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
Previous: Thomas Braun
Message 2 of 2 in “git-completion.bash: Add --anchored”
  1. git-completion.bash: Add --anchoredThomas Braun, May 30, 2021
  2. Junio C HamanoMay 31, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.