I setup bitbucket client side and server side hooks to do some checks on committed files.
I usually validate the content of the files. If a file deleted and that get committed I no need to do any checks on them, I have identified the deleted files in client side using git diff --cached --name-only --diff-filter=D command.
But In server side do not know how to identify deleted files in a commit and skip them ?