Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-recursive git log and diff

git log -p .

only within the current directory but not in subdirectories

equivalent

svn log --diff --depth files .

Is it possible?

like image 828
bdimych Avatar asked Sep 12 '15 15:09

bdimych


1 Answers

How about:

$ git log -p file1 file2 ...

Or, if they're too many to type:

$ find . -maxdepth 1 -type f | xargs git log -p
like image 118
JB. Avatar answered Sep 24 '22 00:09

JB.