How to use path limiting (using a glob)?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Baumann
Date: Wednesday, February 11, 2009 - 12:14 pm

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to use path limiting (using a glob)?, Peter Baumann, (Wed Feb 11, 12:14 pm)
Re: How to use path limiting (using a glob)?, Linus Torvalds, (Wed Feb 11, 12:40 pm)
Re: How to use path limiting (using a glob)?, Junio C Hamano, (Wed Feb 11, 12:48 pm)
Re: How to use path limiting (using a glob)?, Nanako Shiraishi, (Wed Feb 11, 2:09 pm)
Re: How to use path limiting (using a glob)?, Peter Baumann, (Thu Feb 12, 3:27 am)