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

Re: [RFC] Making ce_path_match() more useful by accepting globs

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 26, 2007, 00:11 UTC
Message-ID
<20071126001114.GA10286@steel.home>
In-Reply-To
<7vr6ienqxr.fsf@gitster.siamese.dyndns.org>
Junio C Hamano, Sun, Nov 25, 2007 19:03:12 +0100:
Show 6 quoted lines
> Currently ce_path_match() only uses "the leading directory" match, and
> does not understand file globs.  These do not work:
> 
>    git diff-files 't/*.sh'
>    git diff-index HEAD 'xdiff/*.c'
>    git update-index -g 'Documentation/howto/*.txt'

How should my scripts handle files with "*" in names? Maybe before the proposed change we should make all plumbing accept "--stdin" (which does not expand globs)?

P.S. you have something broken in your mailer:
    To: Linus@sceptre.sasl.smtp.pobox.com,
	    "Torvalds <torvalds"@linux-fundation.org
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 5 in “[RFC] Making ce_path_match() more useful by accepting globs”
  1. Junio C HamanoNov 25, 2007
  2. Alex RiesenNov 26, 2007
  3. Junio C HamanoNov 26, 2007
  4. Junio C HamanoNov 26, 2007
  5. Alex RiesenNov 26, 2007

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.