Re: [PATCH 3/4] push: prepare sender to receive extended ref information from the receiver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Tuesday, September 9, 2008 - 6:03 am

On Tue, Sep 09, 2008 at 01:27:09AM -0700, Junio C Hamano wrote:


This declaration made me double-take. I think it is correct, and you are
saving an extra pointer over a malloc. But the syntax ends up a little
confusing:

        hashcpy(&(extra->array[extra->nr][0]), sha1);

Using a struct probably would have been a little easier to read. I don't
know if this is worth changing.


Isn't the conditional superfluous (ALLOC_GROW already makes this check)?

-Peff
--
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 0/4] Pushing into a repository with alternates, Junio C Hamano, (Tue Sep 9, 1:27 am)
[PATCH 1/4] is_directory(): a generic helper function, Junio C Hamano, (Tue Sep 9, 1:27 am)
[PATCH 2/4] receive-pack: make it a builtin, Junio C Hamano, (Tue Sep 9, 1:27 am)
Re: [PATCH 2/4] receive-pack: make it a builtin, Paolo Bonzini, (Tue Sep 9, 2:26 am)
Re: [PATCH 3/4] push: prepare sender to receive extended r ..., Jeff King, (Tue Sep 9, 6:03 am)
Re: [PATCH 2/4] receive-pack: make it a builtin, Junio C Hamano, (Tue Sep 9, 7:24 am)
Re: [PATCH 2/4] receive-pack: make it a builtin, Paolo Bonzini, (Tue Sep 9, 7:47 am)
Re: [PATCH 1/4] is_directory(): a generic helper function, Junio C Hamano, (Tue Sep 9, 7:51 am)