DORMANTno replies

[PATCH] bash completion: offer more options for gitk

From: Thomas Rast <hidden>
Date: 2016-06-15 22:46:10
Subsystem: the rest · Maintainer: Linus Torvalds

Add some more git-log options to the gitk completion.  Not all of them
make sense, unfortunately.

Signed-off-by: Thomas Rast <redacted>
---

I was simply too lazy to keep typing --simplify-by-decoration.

I made two passes over the git-log manpage and simply selected all
options that seemed to make sense, _seemed_ to work, and that didn't
mangle the history view in horrible ways (such as disconnecting it
into little pieces).  It does handle --left-right correctly, very
nice!


 contrib/completion/git-completion.bash |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index a7a10c0..cedca6d 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1808,7 +1808,15 @@ _gitk ()
 	fi
 	case "$cur" in
 	--*)
-		__gitcomp "--not --all $merge"
+		__gitcomp "
+			--not --all $merge
+			--branches --tags --remotes
+			--first-parent
+			--dense --sparse --full-history
+			--simplify-merges --simplify-by-decoration
+			--since= --after= --until= --before=
+			--left-right
+			"
 		return
 		;;
 	esac
-- 
1.6.2.rc0.293.g947001
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help