Re: [PATCH] upload-pack: Remove some unused code
- From
Nicolas Pitre <nico@fluxnic.net>
- Date
- Jul 26, 2010, 18:29 UTC
- Message-ID
- <alpine.LFD.2.00.1007261424490.30890@xanadu.home>
- In-Reply-To
- <7vr5iqaje0.fsf@alter.siamese.dyndns.org>
On Sun, 25 Jul 2010, Junio C Hamano wrote:
Show 15 quoted lines
> Elijah Newren <newren@gmail.com> writes: > > > Signed-off-by: Elijah Newren <newren@gmail.com> > > --- > > I'm not sure if this is too trivial to submit, but I noticed it while > > poking around in upload-pack. > > > > Ever since f0cea83f631689331fce73b51f22707e897f7939, the > > 'create_full_pack' argument has been unused and is always false. We > > can make it clear that this argument is currently unused and remove some > > associated code from an 'if' block. > > While it is true that currently we memset(&rev_list) to always pass NULL > there, I wonder if that was an unintended behaviour change introduced by > the commit you mentioned...
I don't think so. Especially since now do_rev_list() is only used for shallow clones/fetches, there can never be a full pack in that case. The create_full_pack logic remans present and local to create_pack_file().
Nicolas