Question:
Do you have a clean way to list all the files that ever existed in specified branch?
Answer:
This is a simplified variation of Strager’s solution:
1 2 |
git log --pretty=format: --name-status | cut -f2- | sort -u |
Edit: Thanks to Jakub for teaching me a bit more in the comments, this version has a shorter pipeline and gives git more opportunity to get things right.
1 2 |
git log --pretty=format: --name-only --diff-filter=A | sort -u |