git - Find the commit that changed file permissions -


what combination of arguments git log or similar find commit changed permissions on file?

i can use git log -p <file> , grep "new mode", doesn't seem satisfying.

my solution use git log --summary , grep

list commits permission of given file modified

git log --summary {file} |grep -e ^commit -e"=>"|grep '=>' -b1 | grep ^commit 

if {file} omitted, list commits, file's permission modified.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -