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

[PATCH] git-subtree.sh: Use --allow-unrelated-histories when splitting with --rejoin

From
BCBrett Cundal <brett.cundal@iugome.com>
Date
Jul 21, 2016, 00:56 UTC
Message-ID
<010201560af48050-012ea887-a1e1-4d1b-82d3-4799ac7788bc-000000@eu-west-1.amazonses.com>
---
 contrib/subtree/git-subtree.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 7a39b30..556cd92 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -661,7 +661,7 @@ cmd_split()
 	if [ -n "$rejoin" ]; then
 		debug "Merging split branch into HEAD..."
 		latest_old=$(cache_get latest_old)
-		git merge -s ours \
+		git merge -s ours --allow-unrelated-histories \
 			-m "$(rejoin_msg "$dir" $latest_old $latest_new)" \
 			$latest_new >&2 || exit $?
 	fi

--
https://github.com/git/git/pull/274
Next: David Aguilar
Message 1 of 6 in “git-subtree.sh: Use --allow-unrelated-histories when splitting with --rejoin”
  1. git-subtree.sh: Use --allow-unrelated-histories when splitting with --rejoinBrett Cundal, Jul 21, 2016
  2. David AguilarJul 21, 2016
  3. Johannes SchindelinJul 21, 2016
  4. Brett CundalJul 21, 2016
  5. Johannes SchindelinJul 22, 2016
  6. Brett CundalJul 22, 2016

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.