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

Re: [PATCH] git-http-fetch: remove unused cmd_http_fetch

From
Jeff King <peff@peff.net>
Date
Jun 15, 2012, 18:16 UTC
Message-ID
<20120615181636.GA14843@sigill.intra.peff.net>
In-Reply-To
<7vaa04bg5q.fsf@alter.siamese.dyndns.org>
On Fri, Jun 15, 2012 at 11:09:53AM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > PS There seem to be some other similar declarations: at least
> >    cmd_upload_tar and cmd_pickaxe.
> 
> Thanks.
> 
> $ sed -ne 's/^extern int \(cmd_[^(]*\)(.*/\1/p' builtin.h | sort >/var/tmp/1
> $ nm -g git| sed -ne 's/^[0-9a-f]* T cmd_/cmd_/p' | sort > /var/tmp/2
> $ comm -3 /var/tmp/[12]
> 
> finds only the two you mentioned, so how about doing it this way?

I used a slightly grosser grep that looked in "*.c", and come up with only those 2. Patch looks good to me.

-Peff
Previous: Junio C HamanoNext: Luka Perkov
Message 4 of 5 in “git-http-fetch: remove unused cmd_http_fetch”
  1. git-http-fetch: remove unused cmd_http_fetchLuka Perkov, Jun 14, 2012
  2. Jeff KingJun 15, 2012
  3. Junio C HamanoJun 15, 2012
  4. Jeff KingJun 15, 2012
  5. Luka PerkovJun 15, 2012

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.