git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
	Adam Simpkins <adam@adamsimpkins.net>
Subject: [PATCH] bash: Add more option completions for 'git log'
Date: Sun, 4 May 2008 14:06:15 +0300	[thread overview]
Message-ID: <20080504110615.GA20660@mithlond.arda.local> (raw)
In-Reply-To: <1209897414-10091-1-git-send-email-adam@adamsimpkins.net>

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

Signed-off-by: Teemu Likonen <tlikonen@iki.fi>
---

I have found these bash completions useful with 'git log'. This patch
also includes the '--graph' option recently introduced by Adam Simpkins.


 contrib/completion/git-completion.bash |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 23db664..d7a8545 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -758,6 +758,10 @@ _git_log ()
 			--pretty= --name-status --name-only --raw
 			--not --all
 			--left-right --cherry-pick
+			--stat --numstat --shortstat
+			--decorate --diff-filter=
+			--color --no-color --color-words
+			--graph
 			"
 		return
 		;;
-- 
1.5.5.1.139.g8c42a

  parent reply	other threads:[~2008-05-04 11:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-04 10:36 [PATCH 0/3] log --graph and rev-list --graph Adam Simpkins
2008-05-04 10:36 ` [PATCH 1/3] revision API: split parent rewriting and parent printing options Adam Simpkins
2008-05-04 10:36   ` [PATCH 2/3] Add history graph API Adam Simpkins
2008-05-04 10:36     ` [PATCH 3/3] log and rev-list: add --graph option Adam Simpkins
2008-05-05  7:57       ` [PATCH] graph API: eliminate unnecessary indentation Adam Simpkins
2008-05-05 11:38         ` Ping Yin
2008-05-06  6:41       ` [PATCH 3/3] log and rev-list: add --graph option Junio C Hamano
2008-05-06  7:01         ` Adam Simpkins
2008-05-06  6:41     ` [PATCH 2/3] Add history graph API Junio C Hamano
2008-05-04 11:06 ` Teemu Likonen [this message]
2008-05-05  2:13 ` [PATCH 0/3] log --graph and rev-list --graph Ping Yin
2008-05-05  6:19   ` Adam Simpkins
2008-05-06 19:03 ` Teemu Likonen

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=20080504110615.GA20660@mithlond.arda.local \
    --to=tlikonen@iki.fi \
    --cc=adam@adamsimpkins.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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 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).