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

[PATCH] Meta/Reintegrate: Record all merges to prevent losing topics

From
BHBernt Hansen <bernt@norang.ca>
Date
Feb 13, 2009, 18:23 UTC
Message-ID
<87r622yz59.fsf@gollum.intra.norang.ca>
In-Reply-To
<7vd4ea8mnf.fsf@gitster.siamese.dyndns.org>

Rebuilding an integration branch loses the initial topics when merging results in fast-forwarding the history.

Force the integration branch to always record merge commits to ensure we keep all of the topics on future integration branch rebuilds.

Signed-off-by: Bernt Hansen <bernt@norang.ca>
---
Thanks for this script Junio!

I started using this script today to clean up one of my integration branches by separating the linear history into separate topics. This works great except for the minor glitch this patch fixes.

 Reintegrate |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Reintegrate b/Reintegrate
index dfdb73e..5909821 100755
--- a/Reintegrate
+++ b/Reintegrate
@@ -10,7 +10,7 @@ echo '#!/bin/sh
 while read branch eh
 do
 	case "$eh" in
-	"") git merge "$branch" || break ;;
+	"") git merge --no-ff "$branch" || break ;;
 	?*) echo >&2 "Eh? $branch $eh"; break ;;
 	esac
 done <<EOF'
-- 
1.6.2.rc0.55.g30aa4f
Previous: Johannes Schindelin
Message 3 of 3 in “Reintegrate script”
  1. Reintegrate scriptJunio C Hamano, Jan 26, 2009
  2. Johannes SchindelinJan 26, 2009
  3. Meta/Reintegrate: Record all merges to prevent losing topicsBernt Hansen, Feb 13, 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.