I like to use tools to check code style like flake8 (Python) or jshint (Javascript).
In a Javascript example, I can use the following command to check every .js
file in the Git repo:
jshint $(git ls-files | grep .js$ )
I would like to check the code style in the server of continuous integration, but only in the last modified files.
How I can check only the files modified in the current commit?
EDIT
With
git status --porcelain | sed s/^...//
I can get the name of modified files without commit.