git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on empty commit
@ 2006-01-14  2:18 Luben Tuikov
  2006-01-15  9:48 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Luben Tuikov @ 2006-01-14  2:18 UTC (permalink / raw)
  To: git

Hi,

Scenario:

trunk remote
  |
  \/
trunk local
     \
      `--> tree A
               \
                `--> tree B

         Figure 1.

This is the dependecny since project B depends on project A
introduced in tree A.  And merging is done as follows
(branch per directory; everything but HEAD and index is shared):

cd trunk && git pull trunk
cd ../treeA && git merge "merge trunk" HEAD trunk
cd ../treeB && git merge "merge tree A" HEAD treeA

But this isn't the only way to do it since tree B depends
only on the introduced into tree A project A, and both
project A and project B depend on the trunk, as follows:

trunk remote
  |
  \/
trunk local
  \  \
   \  `--> tree A
    \          \
     `--------> `--> tree B

         Figure 2.

So at point in time t where tree B had been synced with tree A,
and tree A had been synced with trunk, but trunk had _not_ been
synced with remote trunk, a merge was done following Figure 2:

cd trunk && git pull trunk
cd ../treeA && git merge "merge trunk" HEAD trunk
cd ../treeB && git merge "merge trunk" HEAD trunk
git merge "merge tree A" HEAD treeA

Now the last merge introduced an empty commit, since
tree A and tree B had been in sync (only local and
remote trunk had been out of sync).  While it was expected
that no commit would be introduced since they were in sync.

Was the empty commit correct behavior?

Thanks,
   Luben

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

end of thread, other threads:[~2006-01-16 23:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-14  2:18 Question on empty commit Luben Tuikov
2006-01-15  9:48 ` Junio C Hamano
2006-01-16 21:58   ` Luben Tuikov
2006-01-16 22:57     ` Luben Tuikov
2006-01-16 23:32       ` Junio C Hamano
2006-01-16 22:58     ` Junio C Hamano

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).