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

[PATCH 2/3] completion: update am, commit, and log

From
Stephen Boyd <bebarino@gmail.com>
Date
Oct 7, 2009, 08:48 UTC
Message-ID
<1254905331-29516-2-git-send-email-bebarino@gmail.com>
In-Reply-To
<1254905331-29516-1-git-send-email-bebarino@gmail.com>

git am learned --scissors, git commit learned --dry-run and git log learned --decorate=long|short recently.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 contrib/completion/git-completion.bash |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 332be99..2ab8c5e 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -668,7 +668,7 @@ _git_am ()
 			--3way --committer-date-is-author-date --ignore-date
 			--ignore-whitespace --ignore-space-change
 			--interactive --keep --no-utf8 --signoff --utf8
-			--whitespace=
+			--whitespace= --scissors
 			"
 		return
 	esac
@@ -894,6 +894,7 @@ _git_commit ()
 		__gitcomp "
 			--all --author= --signoff --verify --no-verify
 			--edit --amend --include --only --interactive
+			--dry-run
 			"
 		return
 	esac
@@ -1179,6 +1180,10 @@ _git_log ()
 		__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
 		return
 		;;
+	--decorate=*)
+		__gitcomp "long short" "" "${cur##--decorate=}"
+		return
+		;;
 	--*)
 		__gitcomp "
 			$__git_log_common_options
@@ -1191,7 +1196,7 @@ _git_log ()
 			--pretty= --format= --oneline
 			--cherry-pick
 			--graph
-			--decorate
+			--decorate --decorate=
 			--walk-reflogs
 			--parents --children
 			$merge
-- 
1.6.5.rc2.17.gdbc1b
Previous: Stephen BoydNext: Stephen Boyd
Message 2 of 15 in “completion: fix alias listings with newlines”
  1. 1/3 completion: fix alias listings with newlinesStephen Boyd, Oct 7, 2009
  2. 2/3 completion: update am, commit, and logStephen Boyd, Oct 7, 2009
  3. 3/3 completion: add dirstat and friends to diff optionsStephen Boyd, Oct 7, 2009
  4. Junio C HamanoOct 7, 2009
  5. Junio C HamanoOct 7, 2009
  6. Johannes SixtOct 7, 2009
  7. Stephen BoydOct 7, 2009
  8. Shawn O. PearceOct 8, 2009
  9. Stephen BoydOct 8, 2009
  10. Johannes SixtOct 8, 2009
  11. Stephen BoydOct 8, 2009
  12. Johannes SixtOct 8, 2009
  13. Junio C HamanoOct 7, 2009
  14. Shawn O. PearceOct 8, 2009
  15. Stephen BoydOct 8, 2009

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.