All of lore.kernel.org
 help / color / mirror / Atom feed
From: peterjclaw@gmail.com
To: git@vger.kernel.org
Cc: jacob.keller@gmail.com, gitster@pobox.com, szeder@ira.uka.de,
	Peter Law <PeterJCLaw@gmail.com>
Subject: [PATCH] Completion: Add support for --submodule=diff
Date: Sun,  4 Dec 2016 14:41:27 +0000	[thread overview]
Message-ID: <20161204144127.28452-1-peterjclaw@gmail.com> (raw)

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


             reply	other threads:[~2016-12-04 14:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-04 14:41 peterjclaw [this message]
2017-01-30 21:13 ` [PATCH] Completion: Add support for --submodule=diff Peter Law
2017-01-30 21:43   ` Brandon Williams
2017-01-30 23:03   ` Junio C Hamano
2017-02-06 22:56     ` Peter Law
2017-01-31  0:10 ` Jacob Keller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161204144127.28452-1-peterjclaw@gmail.com \
    --to=peterjclaw@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jacob.keller@gmail.com \
    --cc=szeder@ira.uka.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.