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
Jeff King <peff@peff.net>
Date
Mar 22, 2010, 01:41 UTC
Message-ID
<20100322014100.GA7717@coredump.intra.peff.net>
In-Reply-To
<7vwrx56tet.fsf@alter.siamese.dyndns.org>
On Sun, Mar 21, 2010 at 06:23:38PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > their behavior. Junio could probably say more, or you will have to read
> > the code.
> 
> Or read what I already said here a few times ;-) I generally do not want
> to repeat myself.
Well, yeah. :) What I meant was:
Show 9 quoted lines
> There are two semantics of pathspecs:
> 
>   (1) exact match, or leading path.  e.g.
> 
>   	git ls-files Makefile Documentation/
> 
>   (2) exact match, leading path, or fnmatch(3).
> 
> 	git ls-files Makefile Documentation/ '*.txt'

Is type (2) exactly fnmatch? Or are there subtle corner cases that should be tested? For the implementation it shouldn't matter, as hopefully the same code paths will be used, and "just like ls-files" should be specification enough. But for testing, it might be nice to enumerate some of the more subtle cases.

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 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.