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

Re: [PATCH] Completion: Add support for --submodule=diff

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jan 31, 2017, 00:10 UTC
Message-ID
<CA+P7+xqYGigV=8k_vS+4Y5fS2ORHUjYOnNRsAGYb1BwCx13xzg@mail.gmail.com>
In-Reply-To
<20161204144127.28452-1-peterjclaw@gmail.com>
On Sun, Dec 4, 2016 at 6:41 AM,  <peterjclaw@gmail.com> wrote:
Show 26 quoted lines
> From: Peter Law <PeterJCLaw@gmail.com>
>
> Teach git-completion.bash about the 'diff' option to 'git diff
> --submodule=', which was added in Git 2.11.
>
> Signed-off-by: Peter Law <PeterJCLaw@gmail.com>
> ---
>  contrib/completion/git-completion.bash | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 21016bf8d..ab11e7371 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1206,7 +1206,7 @@ _git_describe ()
>
>  __git_diff_algorithms="myers minimal patience histogram"
>
> -__git_diff_submodule_formats="log short"
> +__git_diff_submodule_formats="diff log short"
>
>  __git_diff_common_options="--stat --numstat --shortstat --summary
>                         --patch-with-stat --name-only --name-status --color
> --
> 2.11.0
>
Yep, this looks good to me.

Thanks, Jake

Previous: Peter Law
Message 6 of 6 in “Completion: Add support for --submodule=diff”
  1. Completion: Add support for --submodule=diffpeterjclaw@gmail.com, Dec 4, 2016
  2. Peter LawJan 30, 2017
  3. Brandon WilliamsJan 30, 2017
  4. Junio C HamanoJan 30, 2017
  5. Peter LawFeb 6, 2017
  6. Jacob KellerJan 31, 2017

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.