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

[PATCH] bash: Add completion for git diff --base --ours --theirs

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Apr 20, 2008, 19:32 UTC
Message-ID
<20080420193247.GA21023@mithlond.arda.local>
Signed-off-by: Teemu Likonen <tlikonen@iki.fi>
---

I guess these options should be documented in git-diff.txt too but I'm hesitant to do it because my understanding of merge stages isn't quite enough.

 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 4d81963..6949cac 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -641,6 +641,7 @@ _git_diff ()
 			--ignore-all-space --exit-code --quiet --ext-diff
 			--no-ext-diff
 			--no-prefix --src-prefix= --dst-prefix=
+			--base --ours --theirs
 			"
 		return
 		;;
-- 
1.5.5.84.g295c
Next: Shawn O. Pearce
Message 1 of 2 in “bash: Add completion for git diff --base --ours --theirs”
  1. bash: Add completion for git diff --base --ours --theirsTeemu Likonen, Apr 20, 2008
  2. Shawn O. PearceApr 22, 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.