Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: A note on merging conflicts..

From: Rene Scharfe <hidden>
Date: 2016-06-15 22:42:32

Junio C Hamano schrieb:
I suspect this has the same problem I pointed out to Kristian's 
attempt to make git-branch a built-in.

Subject: Re: [PATCH] Implement git-branch and git-merge-base as
built-ins. Date: Thu, 08 Jun 2006 11:53:48 -0700 Message-ID:
[ref]

Namely, merge-base code is not set up to be called more than once
without cleaning things up.
Eek!  This is not a nice interface.  Your example IDs from the your mail
to Kristian:

   $ ./git-rev-list 89719209...262a6ef7 66ae0c77...ced9456a | wc
        75      75    3075
   $ git-rev-list 89719209 262a6ef7 \
     --not $(git-merge-base --all 89719209 262a6ef7) \
     --not 66ae0c77 ced9456a \
     --not $(git-merge-base --all 66ae0c77 ced9456a) | wc
        75      75    3075

   $ ./git-rev-list 66ae0c77...ced9456a 89719209...262a6ef7 | wc
        76      76    3116
   $ git-rev-list 66ae0c77 ced9456a \
     --not $(git-merge-base --all 66ae0c77 ced9456a) \
     --not 89719209 262a6ef7 \
     --not $(git-merge-base --all 89719209 262a6ef7) | wc
        75      75    3075

Yep, that doesn't seem right.  The additional line is 262a6ef (which is
the merge base for 66ae0c77 and ced9456a btw.).  The other 4x 75 lines
match.

I wonder why the two clear_commit_marks() calls at the end of
get_merge_bases() are not sufficient, though.

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help