Closed jderusse closed 10 years ago
:+1: This is something I've encountered myself actually!
Personally I have a habit of using git commit -am
now, but totally see this an an issue worth resolving. Should be simple enough to implement (famous last words right?).
This should now be address in the dev-master
branch as of 46be5b0e860f957d4c4e75a4a455ab738bf9db71.
I think you forget a tricky case: The
reviewers
will check the file in the current state on the fileSystem and not the file as it will be committed. It can occurred with a partial git add, but it will often append when you fix the violation and forget to add the file before the commit. sample:To avoid that, you should not run
reviewers
directly on the original file, but on a copy of the snapshot of the file as it will be commited. You can retreive that snaphost withgit shot :path/to/the/file
Here is a bash version of a solution (not tested):