You can limit your git log search to this file:
git log
git log [branch] -- foo.c
But how would you limit your search to a file template instead of the full path?
*
git ls-files
I usually do things like this:
git ls-files [--with-tree=<branch>] [path] | grep '<pattern>' | xargs git log [branch]
Or just lower the lead . i.e.: git log -- *foo.c or even git log -- ./*foo.c
.
git log -- *foo.c
git log -- ./*foo.c
Use the --glob .
--glob
Link: http://git-scm.com/docs/git-log
Source: https://habr.com/ru/post/651354/More articles:Do more than one application have the same URL identifier for a custom URL application? - iphoneHow to increase the font size of one word per line only? - htmlHow to transfer scripts from bash to dash? - bashwarning in prolog - warningsWhen using Cloudfront, how to set the Expires header relative to the current date? - cachingWhat should be passed for the BeginInvoke @object parameter? - multithreadingAn object already exists in RSACryptoServiceProvider - c #An example of a variation template VS2010 C ++ - c ++Regular expressions in DB2 SQL - sqlCan operations be generalized? - c #All Articles