gogs / git

Package GoGits - Git is a pure Go implementation of Git manipulation.
Apache License 2.0
176 stars 32 forks source link

Added comment to Repository.CommitsBefore() method. #24

Closed driusan closed 8 years ago

driusan commented 8 years ago

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..)

unknwon commented 8 years ago

Thanks!