Re: [PATCH 13/13] Build in merge

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Vajna
Date: Monday, June 30, 2008 - 7:13 pm

On Sun, Jun 29, 2008 at 10:44:43PM -0700, Junio C Hamano <gitster@pobox.com=

We can. I just did it. ;-)

e".

OK, renamed.


I just realized that builtin-reset forks read-tree as well, so I did
almost the same.


Yes. I'm now using resolve_ref().


Ah, and this way I don't need memrchr(), which was pointed out to be
problemtic on Cygwin.

 up

Right. Now I do

        strbuf_addstr(&truname, "refs/heads/");

Before appending the remote name to truname, so that should exclude
tags.

d,

Yes, you are right. I just checked builtin-read-tree and it's 2, not -1.

ree,

Done. And now builtin-merge uses commit_tree() as well.


OK, I broke out is_old_style_invocation() from cmd_merge().


Now if the second token is a valid SHA1 then I die() if it's not a
commit, but otherwise I just assume it's a new-style invocation.


Yes, now it's just:

       if (!have_message && is_old_style_invocation(argc, argv)) {


Thanks, that was the case. I thought "false || exit" exits with status
code 0.

of the

I dropped single_strategy.


Done.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 13/13] Build in merge, Junio C Hamano, (Sun Jun 29, 10:44 pm)
Re: [PATCH 13/13] Build in merge, Alex Riesen, (Mon Jun 30, 10:41 am)
Re: [PATCH 13/13] Build in merge, Miklos Vajna, (Mon Jun 30, 7:13 pm)
[PATCH 14/14] Build in merge, Miklos Vajna, (Mon Jun 30, 7:22 pm)
[PATCH 00/14] Build in merge, Miklos Vajna, (Mon Jun 30, 7:37 pm)
[PATCH 14/14] Build in merge, Miklos Vajna, (Mon Jun 30, 7:37 pm)
Re: [PATCH 13/14] git-commit-tree: make it usable from oth ..., Johannes Schindelin, (Mon Jun 30, 10:07 pm)
Re: [PATCH 14/14] Build in merge, Junio C Hamano, (Mon Jun 30, 11:23 pm)
Re: [PATCH 14/14] Build in merge, Miklos Vajna, (Tue Jul 1, 5:50 am)
[PATCH 14/14] Build in merge, Miklos Vajna, (Tue Jul 1, 6:18 am)
Re: [PATCH 14/14] Build in merge, Junio C Hamano, (Sun Jul 6, 1:50 am)
Re: [PATCH 14/14] Build in merge, Junio C Hamano, (Sun Jul 6, 2:43 am)
Re: [PATCH 14/14] Build in merge, Johannes Schindelin, (Sun Jul 6, 5:38 am)
Re: [PATCH 14/14] Build in merge, Junio C Hamano, (Sun Jul 6, 12:39 pm)
Re: [PATCH 14/14] Build in merge, Miklos Vajna, (Mon Jul 7, 10:17 am)
[PATCH] Build in merge, Miklos Vajna, (Mon Jul 7, 10:24 am)
Re: [PATCH] Build in merge, Miklos Vajna, (Mon Jul 7, 10:35 am)
Re: [PATCH 14/14] Build in merge, Junio C Hamano, (Mon Jul 7, 11:15 am)
[PATCH] Build in merge, Miklos Vajna, (Mon Jul 7, 4:42 pm)
Re: [PATCH] Build in merge, Junio C Hamano, (Mon Jul 7, 5:32 pm)
Re: [PATCH] Build in merge, Junio C Hamano, (Mon Jul 7, 5:53 pm)
Re: [PATCH] Build in merge, Miklos Vajna, (Mon Jul 7, 6:00 pm)
Re: [PATCH] Build in merge, Junio C Hamano, (Mon Jul 7, 6:05 pm)
[PATCH] Build in merge, Miklos Vajna, (Mon Jul 7, 6:18 pm)
Re: [PATCH] Build in merge, Miklos Vajna, (Mon Jul 7, 6:41 pm)