* Merge failure problem with cogito: How to fixup?
@ 2005-10-23 15:57 Horst von Brand
2005-10-23 22:32 ` Petr Baudis
0 siblings, 1 reply; 2+ messages in thread
From: Horst von Brand @ 2005-10-23 15:57 UTC (permalink / raw)
To: git
When doing the following:
mkdir /tmp/tst1
cd /tmp/tst1
echo "Initial" | cg-init
cd /tmp
cg-clone tst1 tst2
cd /tmp/tst1
echo 'Hi there!' > greet
cg-add greet
cg-commit -m "Add greet"
cd /tmp/tst2
echo 'Hello!' > greet
cg-add greet
cg-commit -m "Add greet"
cg-update
I get a message to the end that the merge doesn't work, and that I have to
fix up by hand. The resulting greet file has no merge markers, plain
"cg-diff" is useless. How am I supposed to find out what the problem is?
Yes, "cg-diff -r origin:HEAD" does the trick, but...
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Merge failure problem with cogito: How to fixup?
2005-10-23 15:57 Merge failure problem with cogito: How to fixup? Horst von Brand
@ 2005-10-23 22:32 ` Petr Baudis
0 siblings, 0 replies; 2+ messages in thread
From: Petr Baudis @ 2005-10-23 22:32 UTC (permalink / raw)
To: Horst von Brand; +Cc: git
Dear diary, on Sun, Oct 23, 2005 at 05:57:51PM CEST, I got a letter
where Horst von Brand <vonbrand@inf.utfsm.cl> told me that...
> When doing the following:
>
> mkdir /tmp/tst1
> cd /tmp/tst1
> echo "Initial" | cg-init
>
> cd /tmp
> cg-clone tst1 tst2
>
> cd /tmp/tst1
> echo 'Hi there!' > greet
> cg-add greet
> cg-commit -m "Add greet"
>
> cd /tmp/tst2
> echo 'Hello!' > greet
> cg-add greet
> cg-commit -m "Add greet"
>
> cg-update
>
> I get a message to the end that the merge doesn't work, and that I have to
> fix up by hand. The resulting greet file has no merge markers, plain
> "cg-diff" is useless. How am I supposed to find out what the problem is?
>
> Yes, "cg-diff -r origin:HEAD" does the trick, but...
Well, yes, that's one of the "unhandled merge cases". :-)
To fixup:
<resolve the merge somehow, probably adding greet in some form>
cg-add greet
(You should be able to cg-rm greet instead if you decide to drop the
file after all.)
This is a _trick_ and it works just because cg-add and cg-rm purely
accidentally do the right GIT commands to also resolve an index-level
merge conflict. The proper solution would be to add the proper case to
cg-Xmergefile, which should be actually pretty easy, if only someone
does it... ;-)
Ok, and cg-status should be taught about it and report "greet" somehow
as a conflict until you choose one of the versions.
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-23 22:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-23 15:57 Merge failure problem with cogito: How to fixup? Horst von Brand
2005-10-23 22:32 ` Petr Baudis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox