From: Petr Baudis <pasky@suse.cz>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Martin Langhoff <martin.langhoff@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
junkio@cox.net, git@vger.kernel.org
Subject: Re: Please undo "Use git-merge instead of git-resolve in git-pull"
Date: Fri, 23 Sep 2005 02:28:44 +0200 [thread overview]
Message-ID: <20050923002844.GO21019@pasky.or.cz> (raw)
In-Reply-To: <Pine.LNX.4.58.0509211902010.2553@g5.osdl.org>
Dear diary, on Thu, Sep 22, 2005 at 04:10:08AM CEST, I got a letter
where Linus Torvalds <torvalds@osdl.org> told me that...
> But cogito at least _used_ to have some special logic for moving patches
> forward.
Yes, but it is used only in case of fast-forward commits.
> git-resolve-script never had that - it only ever did the per-file
> three-way merge, and refused to touch dirty state except for the
> "everything stays the same" case.
>
> Oh. I'm looking at the current cg-merge thing, and I think I see the
> problem: it's doing
>
> git-checkout-index -f -u -a
>
> at the end. That's not only unnecessary, since it uses the "-u" flag to
> "git-read-tree", but it will force an overwrite of the working tree, and
> is thus actively incorrect.
>
> Pasky?
Oops. How brown-paper-bag-ish. Thanks for pointing this out, that was
obviously horribly wrong, and it was indeed apparently happily trashing
all the local changes. I've removed it, and added proper handling for
cases when conflicts arise from merge over a tree with local changes -
that was troublesome since cg-commit after resolving the conflicts would
commit the local changes too. It won't anymore, and cg-status will mark
those files appropriately. Woohoo.
I've also added a rather elaborate regression testing for cg-merge, so I
hope that will help catch any future breakages. Hmm, I have to say that
while I find writing those tests incredibly boring and annoying, it is
pretty nice when I already have them. ;-)
This fix alone is worthy a release, so I'll do one tomorrow.
--
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.
next prev parent reply other threads:[~2005-09-23 0:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-21 20:15 Please undo "Use git-merge instead of git-resolve in git-pull" Linus Torvalds
2005-09-21 20:20 ` Linus Torvalds
2005-09-21 21:48 ` Junio C Hamano
2005-09-21 22:03 ` Linus Torvalds
2005-09-22 0:28 ` David S. Miller
2005-09-22 0:39 ` Linus Torvalds
2005-09-22 0:54 ` Olivier Galibert
2005-09-22 1:46 ` Martin Langhoff
2005-09-22 2:10 ` Linus Torvalds
2005-09-23 0:28 ` Petr Baudis [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-22 16:31 Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050923002844.GO21019@pasky.or.cz \
--to=pasky@suse.cz \
--cc=davem@davemloft.net \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=martin.langhoff@gmail.com \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).