On a related note, I have a helper method kicking around that does a merge of two commits in a bare repo which is like two lines and so I was sort of unsure if it was useful enough for inclusion in the library.

If a bare revert is useful, I suspect a bare merge would also be useful, so I will bring them both in with some test cases.