{"thread":{"id":"55804","subject":"[PATCH] git-completion.bash: Add --anchored","startedAt":"2021-05-30T12:09:08Z","lastAt":"2021-05-31T05:24:59Z","messageCount":2,"participants":["Thomas Braun","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"425915","messageId":"20210530113135.5778-1-thomas.braun@virtuell-zuhause.de","threadId":"55804","inReplyTo":null,"subject":"[PATCH] git-completion.bash: Add --anchored","fromName":"Thomas Braun","fromEmail":"thomas.braun@virtuell-zuhause.de","sentAt":"2021-05-30T11:31:35Z","receivedAt":"2021-05-30T12:09:08Z","isPatch":true,"sender":{"key":"thomas.braun@virtuell-zuhause.de","avatar":"https://avatars.githubusercontent.com/u/1185677?v=4"},"body":"This flag was introduced in 2477ab2e (diff: support anchoring line(s),\n2017-11-27) but back then, the bash completion script did not learn\nabout the new flag. Add it.\n\nSigned-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>\n---\n contrib/completion/git-completion.bash | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 3c5739b905..4dd268470a 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1729,6 +1729,7 @@ __git_diff_common_options=\"--stat --numstat --shortstat --summary\n \t\t\t--indent-heuristic --no-indent-heuristic\n \t\t\t--textconv --no-textconv\n \t\t\t--patch --no-patch\n+\t\t\t--anchored=\n \"\n \n __git_diff_difftool_options=\"--cached --staged --pickaxe-all --pickaxe-regex\n-- \n2.31.1\n\n"},{"id":"425965","messageId":"xmqqpmx7wk4c.fsf@gitster.g","threadId":"55804","inReplyTo":"20210530113135.5778-1-thomas.braun@virtuell-zuhause.de","subject":"Re: [PATCH] git-completion.bash: Add --anchored","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2021-05-31T05:24:51Z","receivedAt":"2021-05-31T05:24:59Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thomas Braun <thomas.braun@virtuell-zuhause.de> writes:\n\n> Subject: Re: [PATCH] git-completion.bash: Add --anchored\n\n\tcompletion: add --anchored to diff's options \n\n> This flag was introduced in 2477ab2e (diff: support anchoring line(s),\n> 2017-11-27) but back then, the bash completion script did not learn\n> about the new flag. Add it.\n>\n> Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>\n> ---\n\nOK.  Thanks.\n\n>  contrib/completion/git-completion.bash | 1 +\n>  1 file changed, 1 insertion(+)\n>\n> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\n> index 3c5739b905..4dd268470a 100644\n> --- a/contrib/completion/git-completion.bash\n> +++ b/contrib/completion/git-completion.bash\n> @@ -1729,6 +1729,7 @@ __git_diff_common_options=\"--stat --numstat --shortstat --summary\n>  \t\t\t--indent-heuristic --no-indent-heuristic\n>  \t\t\t--textconv --no-textconv\n>  \t\t\t--patch --no-patch\n> +\t\t\t--anchored=\n>  \"\n>  \n>  __git_diff_difftool_options=\"--cached --staged --pickaxe-all --pickaxe-regex\n"}]}