I have a partially working command I am using to get all the changed/new files between two Git commits, that being:
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $head_commit_id $older_commit_id | xargs tar -cf project.tar -T -
This has been working fine, but I recently did some filename changes where only the case was changed of the starting letter - I thought this would be covered by the R
flag in the filter
definition; but when I exported the files I got all the files, but they still had their previous filenames.
Am I doing something wrong here!?
Edit: I just noticed I am also not getting new files either; so that's possibly also related to the changed filenames too?