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

[PATCH] git-rebase: Use --ignore-if-in-upstream option when executing git-format-patch.

From
RSRobert Shearman <rob@codeweavers.com>
Date
Oct 3, 2006, 16:29 UTC
Message-ID
<45228FE6.5060206@codeweavers.com>

This reduces the number of conflicts when rebasing after a series of patches to the same piece of code is committed upstream.

Signed-off-by: Robert Shearman <rob@codeweavers.com>
---
  git-rebase.sh |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-rebase.sh b/git-rebase.sh
index a7373c0..413636e 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -286,7 +286,7 @@ fi
 
 if test -z "$do_merge"
 then
-	git-format-patch -k --stdout --full-index "$upstream"..ORIG_HEAD |
+	git-format-patch -k --stdout --full-index --ignore-if-in-upstream "$upstream"..ORIG_HEAD |
 	git am --binary -3 -k --resolvemsg="$RESOLVEMSG" \
 		--reflog-action=rebase
 	exit $?
Message 1 of 1 in “git-rebase: Use --ignore-if-in-upstream option when executing git-format-patch.”
  1. git-rebase: Use --ignore-if-in-upstream option when executing git-format-patch.Robert Shearman, Oct 3, 2006

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.