forked from Shiloh/githaven
49e4826747
And add more tests. Remove a lot of fragile "if" blocks. The old logic is kept as-is.