Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git blame with wildcard

I have a file in my repository I want to use git blame on, but I'm not sure what its path is.

I've managed to use git log like this:

git log -- '**/somefile'

But I can't seem to do the same with git blame. Is it possible?

If it's relevant, I'm using mysysgit (git version: 1.9.5.msysgit.1).

like image 251
Michal Tenenberg Avatar asked Jul 28 '15 11:07

Michal Tenenberg


1 Answers

You'll have to find the file first:

git ls-files -- '**/somefile'

Then use git blame on the returned path.

like image 95
Daniel Hershcovich Avatar answered Sep 28 '22 00:09

Daniel Hershcovich