I need to write a script that incrementally keeps track of files and directories added and removed from a git repo.
I have tried to use: git log -n1 --pretty="format:" --name-only
But that only tells me which files were committed. It does not specify if it was added or removed.
Any ideas?