[PATCH] bash completion: offer more options for gitk
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Feb 14, 2009, 19:54 UTC
- Message-ID
- <1234641270-14342-1-git-send-email-trast@student.ethz.ch>
Add some more git-log options to the gitk completion. Not all of them make sense, unfortunately.
Signed-off-by: Thomas Rast <trast@student.ethz.ch> ---
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