git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] bash: Add more option completions for 'git log'

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
May 4, 2008, 11:06 UTC
Message-ID
<20080504110615.GA20660@mithlond.arda.local>
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
Previous: Junio C HamanoNext: Ping Yin
Message 10 of 13 in “log --graph and rev-list --graph”
  1. 0/3 log --graph and rev-list --graphAdam Simpkins, May 4, 2008
  2. 1/3 revision API: split parent rewriting and parent printing optionsAdam Simpkins, May 4, 2008
  3. 2/3 Add history graph APIAdam Simpkins, May 4, 2008
  4. 3/3 log and rev-list: add --graph optionAdam Simpkins, May 4, 2008
  5. graph API: eliminate unnecessary indentationAdam Simpkins, May 5, 2008
  6. Ping YinMay 5, 2008
  7. Junio C HamanoMay 6, 2008
  8. Adam SimpkinsMay 6, 2008
  9. Junio C HamanoMay 6, 2008
  10. bash: Add more option completions for 'git log'Teemu Likonen, May 4, 2008
  11. Ping YinMay 5, 2008
  12. Adam SimpkinsMay 5, 2008
  13. Teemu LikonenMay 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.