What combination of arguments to git log
or similar will find the commit that changed permissions on a file?
I can use git log -p <file>
and grep for "new mode", but that doesn't seem very satisfying.
My solution use git log --summary
and grep
List all commits that the permission of a given file is modified
git log --summary {file} |grep -e ^commit -e"=>"|grep '=>' -B1 | grep ^commit
If {file}
is omitted, it will list all commits, where any file's permission is modified.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With