Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Monday, June 9, 2008 - 7:02 am

Hi,

On Sat, 7 Jun 2008, Miklos Vajna wrote:


Here, n will be 0 and therefore commits will be xmalloc(0), right?


And here, commits will never be realloc()ed.


If merge_bases_many took a commit_list (yes, as I suggested to Junio), 
this transformation would not be necessary.

IIRC nothing in merge_bases_many() needed a commit array.

Oh, and whose responsibility is it to free "in"?  Caller or callee?  
(Because it is a non-const parameter, I would have expected the callee, 
but I think it makes more sense if the caller can do whatever she wants 
with the heads after calling octopus_merge_bases()).

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 10/10] Build in merge, Miklos Vajna, (Thu Jun 5, 1:44 pm)
Re: [PATCH 09/10] Introduce get_octopus_merge_bases() in c ..., Johannes Schindelin, (Fri Jun 6, 5:28 am)
Re: [PATCH 09/10] Introduce get_octopus_merge_bases() in c ..., Johannes Schindelin, (Fri Jun 6, 5:30 am)
Re: [PATCH 09/10] Introduce get_octopus_merge_bases() in c ..., Johannes Schindelin, (Fri Jun 6, 5:36 am)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 7:02 am)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 4:08 pm)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 4:31 pm)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 7:43 pm)