Given two tagged releases in a Git repo, is it possible to list the files that were either added or removed?For example, suppose tagged release 1.0 has a number of header and implementation files. Further suppose foo.h was removed and and bar.h was added; and then the collection was subsequently tagged as 2.0. How can I have Git tell me foo.h was removed and bar.h was added from 1.0 to 2.0?EDIT: I only need to check between consecutive tags. That is, I only need to check between 1.0/2.0; 2.0/3.0; etc. I don't need to span multiple tags.The reason I want to perform the check is we noticed distros were not always picking up new files for their [DEB|RPM] Build system. So I want to give distros a heads up for the new files.We don't have a FILELIST at the moment because I can't find a canonical reference on it. The cited question concerned conventions for a Filelist; but it was closed and deleted by the community.
List files added and removed between tagged releases
git
git diff-tree -r --summary 1.0 2.0 should do this.You could also just diff the tree listings:diff <(git ls-tree -r --name-only 1.0) <(git ls-tree -r --name-only 2.0)