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

[PATCH v2] bash: add missing 'git merge' options

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Feb 15, 2009, 13:25 UTC
Message-ID
<1234704311-14774-1-git-send-email-szeder@ira.uka.de>
In-Reply-To
<7v7i3sp8jk.fsf@gitster.siamese.dyndns.org>
Namely: '--commit', '--stat', '--no-squash', '--ff', '--no-ff'.

One might wonder why add options that specify the default behaviour anyway (e.g. '--commit', '--no-squash', etc.). Users can override the default with config options (e.g. 'branch.<name>.mergeoptions', 'merge.log'), but sometimes might still need the default behaviour.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index e848d5d..98fa56e 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1037,6 +1037,7 @@ _git_merge ()
 	--*)
 		__gitcomp "
 			--no-commit --no-stat --log --no-log --squash --strategy
+			--commit --stat --no-squash --ff --no-ff
 			"
 		return
 	esac
-- 
1.6.2.rc0.112.gc888f
Previous: Junio C HamanoNext: Shawn O. Pearce
Message 3 of 5 in “bash: add 'merge --ff' and '--no-ff' options”
  1. bash: add 'merge --ff' and '--no-ff' optionsSZEDER Gábor, Feb 14, 2009
  2. Junio C HamanoFeb 15, 2009
  3. bash: add missing 'git merge' optionsSZEDER Gábor, Feb 15, 2009
  4. Shawn O. PearceFeb 16, 2009
  5. Junio C HamanoFeb 17, 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.