git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C Hamano
Message 3 of 3 in “upload-pack: Remove some unused code”
  1. upload-pack: Remove some unused codeElijah Newren, Jul 24, 2010
  2. Junio C HamanoJul 26, 2010
  3. Nicolas PitreJul 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.