Access the changed files path in git pre-receive hook
问题 I'm writing a git pre-receive hook on the remote repo to make sure pushed code is consistent with our company's internal guidelines. I'm able to find all the files that are to be checked when a pre-receive hook is fired, however, I don't have the path to these files to open them using normal file operations(e.g. cat git_working_directory/file_name would throw No such file or directory error). The application which validates the code requires the file path as an argument so that it can open