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

How to use path limiting (using a glob)?

From
PBPeter Baumann <waste.manager@gmx.de>
Date
Feb 11, 2009, 19:14 UTC
Message-ID
<20090211191432.GC27232@m62s10.vlinux.de>
Hallo,

after reading Junio's nice blog today where he explained how to use git grep efficiently, I saw him using a glob to match for the interesting files:

	 $ git grep -e ';;' -- '*.c'

Is it possible to have the same feature in git diff and the revision machinery? Because I tried

	$ cd $path_to_your_git_src_dir
	$ git log master -p -- '*.h'
	.... No commit shown 
	$ git diff --name-only v1.5.0  v1.6.0 -- '*.c'
and both don't return anything.

Grettings, Peter Baumann

Next: Linus Torvalds
Message 1 of 6 in “How to use path limiting (using a glob)?”
  1. Peter BaumannFeb 11, 2009
  2. Linus TorvaldsFeb 11, 2009
  3. Peter BaumannFeb 12, 2009
  4. Sitaram ChamartyFeb 12, 2009
  5. Junio C HamanoFeb 11, 2009
  6. Nanako ShiraishiFeb 11, 2009

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.