Basically, I want to write a pre-commit hook to check if the about-to-be-committed changes (re)move a file without using git rm
/ git mv
.
I don't know how to approach this.
Basically, I want to write a pre-commit hook to check if the about-to-be-committed changes (re)move a file without using git rm
/ git mv
.
I don't know how to approach this.
You can use git commit --dry-run
and inspect the output.