It took me a couple minutes to figure out how to use CommitsBefore(), so I wrote a func comment based on how it appears to be working.
(It's also not really clear to me why it uses a list.List that requires reflection and the knowledge it's a _Commit and not a Commit to get the value out instead of just returning a []_Commit slice, but that's a larger refactor that I'm not really comfortable making..)
It took me a couple minutes to figure out how to use CommitsBefore(), so I wrote a func comment based on how it appears to be working.
(It's also not really clear to me why it uses a list.List that requires reflection and the knowledge it's a _Commit and not a Commit to get the value out instead of just returning a []_Commit slice, but that's a larger refactor that I'm not really comfortable making..)