* Problem merging
@ 2005-11-23 2:50 Luben Tuikov
2005-11-23 3:06 ` Junio C Hamano
2005-11-23 8:59 ` Fredrik Kuivinen
0 siblings, 2 replies; 10+ messages in thread
From: Luben Tuikov @ 2005-11-23 2:50 UTC (permalink / raw)
To: git
Ok, background:
I've two branches of the same .git, _but_ they live in
different directories (bearing the branches' names)
with different index caches, but with the same identical
objects directory (different HEADs of course).
(in effect, I have both branches "checked out")
Branch A is the "trunk", branch B is trunk+my changes.
I do:
branchA: git pull <remote>
branchA: cd ../branchB/
branchB: git resolve HEAD branchA "merge trunk"
And I get:
Trying to merge 4b4a27dff4e2d4cc2eac1cde31aede834a966a48 into
e1ef47b54d7e7e477f7f1eb3251a9d37f38e0469 using 989e4d6cbc69191c41ddf4b1c492457410376b43.
Simple merge failed, trying Automatic merge
Removing include/asm-um/ldt.h
fatal: merge program failed
Automatic merge failed, fix up by hand
This is with git HEAD:
2392ee98eb76aa821de53c93c9e36acb18d27fc0 -- latest as
of now.
Is this a bug in git? Since this process has always worked
before.
Thanks,
Luben
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Problem merging
2005-11-23 2:50 Problem merging Luben Tuikov
@ 2005-11-23 3:06 ` Junio C Hamano
2005-11-23 3:41 ` Luben Tuikov
2005-11-23 14:49 ` Johannes Schindelin
2005-11-23 8:59 ` Fredrik Kuivinen
1 sibling, 2 replies; 10+ messages in thread
From: Junio C Hamano @ 2005-11-23 3:06 UTC (permalink / raw)
To: git
Luben Tuikov <ltuikov@yahoo.com> writes:
> Trying to merge 4b4a27dff4e2d4cc2eac1cde31aede834a966a48 into
> e1ef47b54d7e7e477f7f1eb3251a9d37f38e0469 using 989e4d6cbc69191c41ddf4b1c492457410376b43.
> Simple merge failed, trying Automatic merge
> Removing include/asm-um/ldt.h
> fatal: merge program failed
> Automatic merge failed, fix up by hand
>
> This is with git HEAD:
> 2392ee98eb76aa821de53c93c9e36acb18d27fc0 -- latest as
> of now.
>
> Is this a bug in git? Since this process has always worked
> before.
As "Merging two branches" section in Documentation/tutorial.txt
shows, it is one of the valid outcome from merge to leave
conflicts and have you manually resolve. So this process
probably is working correctly for you this time as well.
Sorry, but I am not a good enough cryptoanalyst to reverse SHA1
hashes, and I cannot tell if the merge you did *should* have
resulted in the conflict or not, just by looking at the three
commit object IDs.
What does "git diff" and "git diff HEAD" tell you after the
merge procedure leaves conflict in the working tree (branchB
directory, I mean)?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem merging
2005-11-23 3:06 ` Junio C Hamano
@ 2005-11-23 3:41 ` Luben Tuikov
2005-11-23 14:49 ` Johannes Schindelin
1 sibling, 0 replies; 10+ messages in thread
From: Luben Tuikov @ 2005-11-23 3:41 UTC (permalink / raw)
To: Junio C Hamano, git
--- Junio C Hamano <junkio@cox.net> wrote:
> What does "git diff" and "git diff HEAD" tell you after the
> merge procedure leaves conflict in the working tree (branchB
> directory, I mean)?
Apparently include/asm-um/ldt.h has been renamed
and this was giving problems.
I had to manually git-update-index --force-remove that
file and then git resolve worked ok.
Luben
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem merging
2005-11-23 3:06 ` Junio C Hamano
2005-11-23 3:41 ` Luben Tuikov
@ 2005-11-23 14:49 ` Johannes Schindelin
2005-11-24 10:54 ` Ben Clifford
1 sibling, 1 reply; 10+ messages in thread
From: Johannes Schindelin @ 2005-11-23 14:49 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Hi,
On Tue, 22 Nov 2005, Junio C Hamano wrote:
> Sorry, but I am not a good enough cryptoanalyst to reverse SHA1
> hashes,
I think nobody is. Since there are infinitely many files having the same
SHA1 (pigeon-hole principle), there probably are infinitely many of them
which compile just fine (and therefore could be the original).
Now, I tried to find all of them, but I, too, failed ;-)
Ciao,
Dscho
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem merging
2005-11-23 14:49 ` Johannes Schindelin
@ 2005-11-24 10:54 ` Ben Clifford
2005-11-25 1:13 ` Johannes Schindelin
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Ben Clifford @ 2005-11-24 10:54 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Git Mailing List
On 24 Nov 2005, at 00:49, Johannes Schindelin wrote:
>
> I think nobody is. Since there are infinitely many files having the
> same
> SHA1 (pigeon-hole principle),
>
hmm... pigeon-hole principle is just that there exists two files that
have the same SHA-1 as each other... doesn't say anything about *all*
SHA-1s, though?
--
Ben • ベン • Бэн • 벤 • 班明
http://www.hawaga.org.uk/ben/
My email is high latency but best way to contact me. Alternatively,
SMS number(s) at above URL.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Problem merging
2005-11-24 10:54 ` Ben Clifford
@ 2005-11-25 1:13 ` Johannes Schindelin
2005-11-25 1:35 ` Andreas Ericsson
2005-11-27 21:24 ` H. Peter Anvin
2 siblings, 0 replies; 10+ messages in thread
From: Johannes Schindelin @ 2005-11-25 1:13 UTC (permalink / raw)
To: Ben Clifford; +Cc: Git Mailing List
Hi,
On Thu, 24 Nov 2005, Ben Clifford wrote:
> On 24 Nov 2005, at 00:49, Johannes Schindelin wrote:
>
> > I think nobody is. Since there are infinitely many files having the same
> > SHA1 (pigeon-hole principle),
>
> hmm... pigeon-hole principle is just that there exists two files that
> have the same SHA-1 as each other... doesn't say anything about *all*
> SHA-1s, though?
Okay, the second part of the truth is: It would be a lousy cryptographic
hash (which it isn't), if the SHA1s were not uniformly distributed over
the possible data.
You actually can be reasonably sure that given the SHA1s of all messages
of length up to N (N being an integer at least the number of bits of the
hash, i.e. 160 for SHA1), the counts of the different SHA1s should be
equal.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem merging
2005-11-24 10:54 ` Ben Clifford
2005-11-25 1:13 ` Johannes Schindelin
@ 2005-11-25 1:35 ` Andreas Ericsson
2005-11-27 21:24 ` H. Peter Anvin
2 siblings, 0 replies; 10+ messages in thread
From: Andreas Ericsson @ 2005-11-25 1:35 UTC (permalink / raw)
To: Git Mailing List
Ben Clifford wrote:
> hmm... pigeon-hole principle is just that there exists two files that
> have the same SHA-1 as each other... doesn't say anything about *all*
> SHA-1s, though?
>
It doesn't have to say that explicitly. It's universally applicable to
all static-size checksum algorithms given an infinite amount of inputs.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem merging
2005-11-24 10:54 ` Ben Clifford
2005-11-25 1:13 ` Johannes Schindelin
2005-11-25 1:35 ` Andreas Ericsson
@ 2005-11-27 21:24 ` H. Peter Anvin
2 siblings, 0 replies; 10+ messages in thread
From: H. Peter Anvin @ 2005-11-27 21:24 UTC (permalink / raw)
To: Ben Clifford; +Cc: Johannes Schindelin, Git Mailing List
Ben Clifford wrote:
> On 24 Nov 2005, at 00:49, Johannes Schindelin wrote:
>
>>
>> I think nobody is. Since there are infinitely many files having the same
>> SHA1 (pigeon-hole principle),
>
> hmm... pigeon-hole principle is just that there exists two files that
> have the same SHA-1 as each other... doesn't say anything about *all*
> SHA-1s, though?
>
There are an infinite number of possible files (specifically,
aleph-null.) There are a finite number of possible SHA-1's
(specifically, 1461501637330902918203684832716283019655932542976.)
Therefore the pidgeon-hole principle tells you there must be at least
one SHA-1 value that hashes an infinite number of files (aleph-null, again.)
Given that SHA-1 is believed to be uniformly distributed, it's quite
likely *ALL* SHA-1's hash an infinite number of files, but the
pigeon-hole principle can't tell you that.
-hpa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem merging
2005-11-23 2:50 Problem merging Luben Tuikov
2005-11-23 3:06 ` Junio C Hamano
@ 2005-11-23 8:59 ` Fredrik Kuivinen
2005-11-23 19:48 ` Junio C Hamano
1 sibling, 1 reply; 10+ messages in thread
From: Fredrik Kuivinen @ 2005-11-23 8:59 UTC (permalink / raw)
To: Luben Tuikov; +Cc: git
On Tue, Nov 22, 2005 at 06:50:01PM -0800, Luben Tuikov wrote:
> Ok, background:
>
> I've two branches of the same .git, _but_ they live in
> different directories (bearing the branches' names)
> with different index caches, but with the same identical
> objects directory (different HEADs of course).
> (in effect, I have both branches "checked out")
>
> Branch A is the "trunk", branch B is trunk+my changes.
> I do:
>
> branchA: git pull <remote>
> branchA: cd ../branchB/
> branchB: git resolve HEAD branchA "merge trunk"
>
> And I get:
>
> Trying to merge 4b4a27dff4e2d4cc2eac1cde31aede834a966a48 into
> e1ef47b54d7e7e477f7f1eb3251a9d37f38e0469 using 989e4d6cbc69191c41ddf4b1c492457410376b43.
> Simple merge failed, trying Automatic merge
> Removing include/asm-um/ldt.h
> fatal: merge program failed
> Automatic merge failed, fix up by hand
>
> This is with git HEAD:
> 2392ee98eb76aa821de53c93c9e36acb18d27fc0 -- latest as
> of now.
>
> Is this a bug in git? Since this process has always worked
> before.
Have you tried this merge with the recursive merge strategy?
Btw is there a reason why 'recursive' isn't the default merge strategy
for git-merge? It might be a bit confusing that git-pull and git-merge
have different default strategies...
- Fredrik
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-11-27 21:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23 2:50 Problem merging Luben Tuikov
2005-11-23 3:06 ` Junio C Hamano
2005-11-23 3:41 ` Luben Tuikov
2005-11-23 14:49 ` Johannes Schindelin
2005-11-24 10:54 ` Ben Clifford
2005-11-25 1:13 ` Johannes Schindelin
2005-11-25 1:35 ` Andreas Ericsson
2005-11-27 21:24 ` H. Peter Anvin
2005-11-23 8:59 ` Fredrik Kuivinen
2005-11-23 19:48 ` 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).