Hi,
I am developing a pre-commit hook locally and wanted to check if the files are py2-py3 compatible. If not i throw an error saying commit criteria not met.
Problem faced:
I see people getting error for the files that they have not touched. This is because those files came in because of the merge.
QUERY:
Can you please let me know how to get the list of files that got merged and the files which were touched by the user (changed because of the merge conflict or some local changes)
Using this i can only run my pre-commit checks on the files which the user modified and not those which came in as merge.
Please let me know.
Honestly, if it is a "pre-commit" hook, then it is a Git question, not a Bitbucket one. At least IMO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Indeed. I was thinking about server-side hooks because of the reference to merges.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.