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

Re: "git add -i" with path gives "Argument list too long"

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 22, 2010, 01:55 UTC
Message-ID
<7veijd3ysc.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100322014100.GA7717@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Is type (2) exactly fnmatch?

It calls fnmatch(3) but without FNM_PATHNAME nor FNM_PERIOD, which makes me sometimes wonder if it was a historical mistake and go to "git log" to check, but it is more-or-less deliberate choice, as illustrated by the 'arch/i386/*.[ch]' example in 5be4efb ([PATCH] Make "git-ls-files" work in subdirectories, 2005-08-21).

Previous: Jeff King
Message 5 of 5 in “"git add -i" with path gives "Argument list too long"”
  1. Wincent ColaiutaMar 21, 2010
  2. Jeff KingMar 22, 2010
  3. Junio C HamanoMar 22, 2010
  4. Jeff KingMar 22, 2010
  5. Junio C HamanoMar 22, 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.