3 ms·
It's pretty useful, but it's also fairly easy to end up with an untested commit that doesn't really compile.
by 0x0 13y ago
It's pretty useful, but it's also fairly easy to end up with an untested commit that doesn't really compile.
- mhw 13y agoFortunately git also makes it fairly easy to test only those changes that you've staged: $ git stash --keep-index $ <compile/run tests> $ git commit $ git stash pop
- pyre 13y agoYou might want to add this option: -u / --include-untracked You're not testing only the index if you have untracked files lying around (which could possibly affect things). (Presumably you don't need to use --all because you're only ignoring files that don't affect things :P).