How to use path limiting (using a glob)?
- From
- Peter 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