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

[PATCH 8/8] bash: Support internal revlist options better.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 4, 2007, 07:38 UTC
Message-ID
<20070204073847.GH17603@spearce.org>

format-patch/log/whatchanged all take --not and --all as options to the internal revlist process. So these should be supported as possible completions.

gitk takes anything rev-list/log/whatchanged takes, so we should use complete_revlist to handle its options.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 contrib/completion/git-completion.bash |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 3b1f100..466cc32 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -494,6 +494,7 @@ _git_format_patch ()
 			--signoff
 			--in-reply-to=
 			--full-index --binary
+			--not --all
 			"
 		return
 		;;
@@ -532,6 +533,7 @@ _git_log ()
 			--author= --committer= --grep=
 			--all-match
 			--pretty= --name-status --name-only
+			--not --all
 			"
 		return
 		;;
@@ -898,7 +900,7 @@ _gitk ()
 		return
 		;;
 	esac
-	__gitcomp "$(__git_refs)"
+	__git_complete_revlist
 }
 
 complete -o default -o nospace -F _git git
-- 
1.5.0.rc3.22.g5057
Message 1 of 1 in “bash: Support internal revlist options better.”
  1. 8/8 bash: Support internal revlist options better.Shawn O. Pearce, Feb 4, 2007

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.