I am trying to produce a list of the files that were changed in a specific commit. The problem is, that every file has the version number in a comment at the top of the file
Perhaps a Bash script like this:
#!/bin/bash git diff --name-only "$@" | while read FPATH ; do LINES_COUNT=`git diff --textconv "$FPATH" "$@" | sed '/^[1-]\s\+[1-]\s\+.*/d' | wc -l` if [ $LINES_COUNT -gt 0 ] ; then echo -e "$LINES_COUNT\t$FPATH" fi done | sort -n