Search for all git commits (on all branches) that contain a specified file? -


i trying list git commits on branches on specific file exist. know full path file. not trying search commits mention file in commit message, rather commits contain file itself.

git rev-list --all | xargs -i commit \     bash -c 'git cat-file -e commit:myfile.py 2> /dev/null && echo commit' 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -