4 ms·
Another way to not break the build is to add a local git hook that compiles your project before allowing a commit. Assuming you compiled and tested your change
by icefox 18y ago
Another way to not break the build is to add a local git hook that compiles your project before allowing a commit. Assuming you compiled and tested your change already (you did right... :) the compile hook will take no time at all. Using this I have only commited broken builds once or twice when it built on my macbook, but not on Linux (case insensitive file system) Wrote up more details on hooks along with some examples here:
http://benjamin-meyer.blogspot.com/2008/10/git-hooks.html http://benjamin-meyer.blogspot.com/2008/10/git-hooks.html