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

Re: [PATCH] completion: add --graph to log command completion

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Jun 19, 2008, 22:40 UTC
Message-ID
<20080619224012.GA6705@mithlond.arda.local>
In-Reply-To
<20080619215842.GL11793@spearce.org>
Shawn O. Pearce wrote (2008-06-19 17:58 -0400):
Show 7 quoted lines
> Dan McGee <dpmcgee@gmail.com> wrote:
> > Signed-off-by: Dan McGee <dpmcgee@gmail.com>
> 
> Acked-by: Shawn O. Pearce <spearce@spearce.org>
> 
> 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

Signed-off-by: Teemu Likonen <tlikonen@iki.fi>
---
 contrib/completion/git-completion.bash |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 506b40c..e78ca8e 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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
 		;;
-- 
1.5.6.2.g3c3a
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 3 of 7 in “completion: add --graph to log command completion”
  1. completion: add --graph to log command completionDan McGee, Jun 19, 2008
  2. Shawn O. PearceJun 19, 2008
  3. Teemu LikonenJun 19, 2008
  4. Shawn O. PearceJun 19, 2008
  5. Dan McGeeJun 19, 2008
  6. Teemu LikonenJun 20, 2008
  7. bash: Add more option completions for 'git log'Teemu Likonen, Jun 20, 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.