Using mart1n's idea,
git log --name-status '--pretty=format:' tag1 tag2 -- target-src | grep -vxh '\s*'
gives a clean output.
Also try this script:
git diff --name-status tag1 tag2 | while read line ; do
status=${line:0:1}
path=${line:2}
date=$(git log -1 '--pretty=format:%ci' -- "$path")
echo "$date $status $path"
done | sort -r
You can remove the dates (used for sorting) later, I think dates are useful though.
You can also remove -r
option from sort
if you want the older changed files to be on top.