From: Stefan Richter Date: Fri, 06 Oct 2006 19:23:59 GMT Subject: Re: Commit to more than one branch at once? Message-ID: <4526AD4F.70305@s5r6.in-berlin.de> In-Reply-To: Sean wrote: > Only merging the branches will make the commit show up in branch B with > the same SHA1 number (or identity) that it had in branch A. This is a > fundamental part of Git. The sha1 of each commit is based in part on > the sha1 of its parent. Thus it's impossible[1] to copy a commit to > another branch (ie. reparent it) without changing its identity. > > Sean > > [1] Okay, more or less impossible.. don't ask me do the math. Ah, I didn't see the wood for the trees. And this dependence of a commit's identity on the history is also a (or the) reason why mergers are necessarily spliced in as commits with unique identity too... -- Stefan Richter -=====-=-==- =-=- --==- http://arcgraph.de/sr/