Do you have a clean way to list all the files that ever existed in specified branch?
This does the right thing for checking if a filename was ever present in the repo not just on the current branch.
git log --all --pretty=format: --name-only --diff-filter=A | sort - | grep fubar