* Re: cg-merge should use git-merge
[not found] ` <46a038f90510161744m7e95303eu8a9942363ffc58a6@mail.gmail.com>
@ 2005-10-17 8:31 ` Junio C Hamano
[not found] ` <46a038f90510170203ndee2b2bi913b62014614f68e@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2005-10-17 8:31 UTC (permalink / raw)
To: Martin Langhoff; +Cc: Petr Baudis, Git Mailing List
Martin Langhoff <martin.langhoff@gmail.com> writes:
> - Junio, would you tolerate a flag for git-merge that says "don't
> autocommit even on cleanly merged"?
I'd *welcome* not just tolerate.
Currently both git-am and git-applypatch call git-merge-resolve
directly, but they should really be calling git-merge with user
supplied strategy with '-s' parameter. By bypassing git-merge,
they happen to get the "do not commit when you fall back on
3-way merge" semantics, but that is just by accident.
I have a plan to rewrite git-cherry-pick using git-format-patch
piped into git-am (I have not scripted it, but that is the
primary way I do cherry-picks these days), and being able to
customize what happens after merge by git-merge would probably
be useful there as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Fwd: cg-merge should use git-merge
[not found] <46a038f90510161644l35119401rdc05c081506ae715@mail.gmail.com>
[not found] ` <46a038f90510161744m7e95303eu8a9942363ffc58a6@mail.gmail.com>
@ 2005-10-19 11:21 ` Martin Langhoff
2005-10-20 7:04 ` Martin Langhoff
1 sibling, 1 reply; 4+ messages in thread
From: Martin Langhoff @ 2005-10-19 11:21 UTC (permalink / raw)
To: Git Mailing List, Petr Baudis
Resending a post that never made it to the list due to a bug at my
end, and I think warrants some more discussion. Unfortunately, I'm
bug-fixing at the moment, so implementing this has taken a backseat.
---------- Forwarded message ----------
From: Martin Langhoff <martin.langhoff@gmail.com>
Date: Oct 17, 2005 12:44 PM
Subject: cg-merge should use git-merge
To: Petr Baudis <pasky@ucw.cz>, Git Mailing List <git@vger.kernel.org>
Petr,
After using git-merge a few times by hand to test-drive the new merge
drivers, I'm sold on the idea, and I 'd like to have cg-merge use
git-merge directly. I'll try and find the time one of these evenings
to outline something, but I guess it's pretty core to Cogito, so I'm
after some direction from you ;)
martin
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: cg-merge should use git-merge
2005-10-19 11:21 ` Fwd: " Martin Langhoff
@ 2005-10-20 7:04 ` Martin Langhoff
0 siblings, 0 replies; 4+ messages in thread
From: Martin Langhoff @ 2005-10-20 7:04 UTC (permalink / raw)
To: Git Mailing List, Petr Baudis, Junio C Hamano
On 10/20/05, Martin Langhoff <martin.langhoff@gmail.com> wrote:
> After using git-merge a few times by hand to test-drive the new merge
> drivers, I'm sold on the idea, and I 'd like to have cg-merge use
> git-merge directly.
I started drafting a 5-minute proof-of-concept, and then it struck me:
cg users aren't aware of the index. This is really important when you
are merging and have to resolve a conflict over a dirty tree. git
users know that the "clean" part of the merge is in the index, and
they have to resolve a couple of files in their checkout, and update
the index for those only before calling git-write-tree &
git-commit-tree.
Cogito users don't know about this magic at all, which is a bit of a
problem. I can refuse to run cg-merge on a dirty tree to make things
simpler, but that's cheating ;-)
tagging "for later"...
cheers,
martin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-10-20 7:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <46a038f90510161644l35119401rdc05c081506ae715@mail.gmail.com>
[not found] ` <46a038f90510161744m7e95303eu8a9942363ffc58a6@mail.gmail.com>
2005-10-17 8:31 ` cg-merge should use git-merge Junio C Hamano
[not found] ` <46a038f90510170203ndee2b2bi913b62014614f68e@mail.gmail.com>
2005-10-17 9:26 ` Junio C Hamano
2005-10-19 11:21 ` Fwd: " Martin Langhoff
2005-10-20 7:04 ` Martin Langhoff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox