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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Vajna <vmiklos@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Monday, June 9, 2008 - 10: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:
Re: [PATCH 09/10] Introduce get_octopus_merge_bases() in com..., Johannes Schindelin, (Fri Jun 6, 8:30 am)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 10:02 am)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 7:31 pm)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 10:43 pm)
Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c, Johannes Schindelin, (Mon Jun 9, 7:08 pm)
Re: [PATCH 09/10] Introduce get_octopus_merge_bases() in com..., Johannes Schindelin, (Fri Jun 6, 8:28 am)
Re: [PATCH 09/10] Introduce get_octopus_merge_bases() in com..., Johannes Schindelin, (Fri Jun 6, 8:36 am)
[PATCH 10/10] Build in merge, Miklos Vajna, (Thu Jun 5, 4:44 pm)