I am developing a validation and linting utility for integration with various commit latches, including Git one
https://github.com/miohtama/vvv
Currently, validators and letters are launched against the entire project code base with each commit. However, it would be much more optimal to run them only with modified files. To do this, I need to know the list of modified files in my Git pre-hook (in Python)
https://github.com/miohtama/vvv/blob/master/vvv/hooks/git.py
What options do I need to extract a list of modified files (in Python, if that matters)?
Mikko ohtamaa
source share