Skip to content

Instantly share code, notes, and snippets.

@white-gecko
Created May 14, 2021 18:21
Show Gist options
  • Save white-gecko/06019ebe593e07b0cf4c69d039d808f2 to your computer and use it in GitHub Desktop.
Save white-gecko/06019ebe593e07b0cf4c69d039d808f2 to your computer and use it in GitHub Desktop.
for i in $( git log --oneline <path_to_file_in_repo> | awk '{print $1}' ); do git show --raw $i | grep <path_to_file_in_repo> | awk '{print $4}' | xargs git show --raw | diff -w <path_to_my_file> - | grep "^>" | wc -l ; echo $i ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment