git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Completion: Add support for --submodule=diff
@ 2016-12-04 14:41 peterjclaw
  2017-01-30 21:13 ` Peter Law
  2017-01-31  0:10 ` Jacob Keller
  0 siblings, 2 replies; 6+ messages in thread
From: peterjclaw @ 2016-12-04 14:41 UTC (permalink / raw)
  To: git; +Cc: jacob.keller, gitster, szeder, Peter Law

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


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

end of thread, other threads:[~2017-02-06 22:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-04 14:41 [PATCH] Completion: Add support for --submodule=diff peterjclaw
2017-01-30 21:13 ` 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

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