git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Merges without bases
@ 2005-08-25 21:10 Darrin Thompson
  2005-08-25 21:29 ` Darrin Thompson
  2005-08-25 22:26 ` Junio C Hamano
  0 siblings, 2 replies; 12+ messages in thread
From: Darrin Thompson @ 2005-08-25 21:10 UTC (permalink / raw)
  To: git

I have a weird situation I want to support. I want to be able to merge a
foreign-tree repeatedly.

What makes the foreign tree foreign is that it may not yet share any
history with this branch.

What I tried to do was fetch foreign tree material and run octopus.
Octopus understandably barfed when it could not find a merge base for
the foreign tree.

What I think is newsworthy is that I figured out a sick way to get it
done. I created an empty tree object and used it as the merge base for
git-read-tree -m.

Could git-read-tree -m 3-args be made smart enough to treat a 0 as arg 1
as an implicit empty tree?

Once that is done, git octopus will be able to handle the no merge base
case.

--
Darrin

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-09-09 12:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 21:10 Merges without bases Darrin Thompson
2005-08-25 21:29 ` Darrin Thompson
2005-08-25 22:26 ` Junio C Hamano
2005-08-25 22:59   ` Darrin Thompson
2005-09-08 18:01     ` Tim Ottinger
2005-08-26  4:09   ` Daniel Barkalow
2005-08-26  8:00     ` Junio C Hamano
2005-09-09 12:02       ` Eric W. Biederman
2005-08-26  9:17   ` Martin Langhoff
2005-08-26 16:37     ` Daniel Barkalow
2005-08-27  6:48       ` Martin Langhoff
2005-08-27 20:49         ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).