Skip to contentSkip to conversation

completion: add --graph to log command completion

PATCH In review Dan McGee 3 participants 7 messages Jun 15, 2016

lore
Share & tools
lore

Dan McGee

author
#0 lore raw

PATCH 1/1 completion: add --graph to log command completion

---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +1 -0
index 2141b6b..0eb8df0 100755
@@ -761,6 +761,7 @@ _git_log ()
 			--pretty= --name-status --name-only --raw
 			--not --all
 			--left-right --cherry-pick
+			--graph
 			"
 		return
 		;;
Signature · 1 line
1.5.6
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Dan McGee

First change for 1.5.6.1? With --graph in 1.5.6 we really should have included this as part of 1.5.6. Oh well. 1.5.6.1 perhaps Junio?

Quoted 18 lines
---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +1 -0
index 2141b6b..0eb8df0 100755
@@ -761,6 +761,7 @@ _git_log ()
 			--pretty= --name-status --name-only --raw
 			--not --all
 			--left-right --cherry-pick
+			--graph
 			"
 		return
 		;;
Signature · 1 line
1.5.6
Signature · 1 line
Shawn.
#2 lore raw

Shawn O. Pearce wrote (2008-06-19 17:58 -0400):

Quoted 7 lines
Quoted 1 line · Dan McGee

First change for 1.5.6.1? With --graph in 1.5.6 we really should have included this as part of 1.5.6. Oh well. 1.5.6.1 perhaps Junio?

Liked-by: me

I think I have already sent twice a patch with --graph completion. I use bash completions quite a lot and here's my current additions to "git log":

---snip---
bash: Add more option completions for 'git log'

Options added: --graph --walk-reflogs --stat --numstat --shortstat --decorate --diff-filter= --color-words

---
 contrib/completion/git-completion.bash |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +3 -0
index 506b40c..e78ca8e 100755
@@ -761,6 +761,9 @@ _git_log ()
 			--pretty= --name-status --name-only --raw
 			--not --all
 			--left-right --cherry-pick
+			--stat --numstat --shortstat
+			--decorate --diff-filter=
+			--color-words --walk-reflogs --graph
 			"
 		return
 		;;
Signature · 1 line
1.5.6.2.g3c3a
#3 lore raw
Quoted 1 line · Teemu Likonen

I think I have already sent twice a patch with --graph completion.

I didn't Ack them because at the time --graph wasn't even in next yet I think. Then I got busy and forgot. And --graph slipped through into the 1.5.6 release without your bash completion patches. Sorry.

Quoted 8 lines

---snip---
bash: Add more option completions for 'git log'

Options added: --graph --walk-reflogs --stat --numstat --shortstat --decorate --diff-filter= --color-words

---

This conflicts with the patch you are replying to, but it makes sense to do these options as well.

assuming the semantic (or merge) conflict on --graph is worked out. ;-)

Quoted 20 lines
 contrib/completion/git-completion.bash |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +3 -0
index 506b40c..e78ca8e 100755
@@ -761,6 +761,9 @@ _git_log ()
 			--pretty= --name-status --name-only --raw
 			--not --all
 			--left-right --cherry-pick
+			--stat --numstat --shortstat
+			--decorate --diff-filter=
+			--color-words --walk-reflogs --graph
 			"
 		return
 		;;
Signature · 1 line
1.5.6.2.g3c3a
Signature · 1 line
Shawn.
#4 lore raw

Shawn O. Pearce wrote (2008-06-19 18:55 -0400):

Quoted 6 lines
Quoted 1 line · Teemu Likonen

I think I have already sent twice a patch with --graph completion.

I didn't Ack them because at the time --graph wasn't even in next yet I think. Then I got busy and forgot. And --graph slipped through into the 1.5.6 release without your bash completion patches. Sorry.

No problems. I should have sent a ping to the list after the log --graph settled to the master branch. But... I forgot.

#5 lore raw

PATCH v2 1/1 bash: Add more option completions for 'git log'

Options added: --walk-reflogs --stat --numstat --shortstat --decorate --diff-filter= --color-words

---

Here's a non-conflicting version.

 contrib/completion/git-completion.bash |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +3 -0
index 72575cf..f108ede 100755
@@ -762,6 +762,9 @@ _git_log ()
 			--not --all
 			--left-right --cherry-pick
 			--graph
+			--stat --numstat --shortstat
+			--decorate --diff-filter=
+			--color-words --walk-reflogs
 			"
 		return
 		;;
Signature · 1 line
1.5.6.2.g3c3a