Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FILENAME="about"; git log --numstat --reverse --format=format:'SHA %H' --diff-filter=A --name-only | awk -v pattern="$FILENAME" '1;$0 ~ pattern {exit}' | grep SHA | tail -n 1 | cut -d ' ' -f 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment