diff --git a/pkg/git/repository.go b/pkg/git/repository.go index f4b1086..7d0928e 100644 --- a/pkg/git/repository.go +++ b/pkg/git/repository.go @@ -38,6 +38,7 @@ func NewRepository(path string) (Repository, error) { }, nil } +// Get all commits start with func (r *repo) Log(fromRev string) ([]Commit, error) { if fromRev == "" { fromRev = head @@ -79,6 +80,7 @@ func (r *repo) LogExcludeTo(fromRev, toRev string) ([]Commit, error) { return commits, nil } +// Get all commits between and (include ) func (r *repo) LogIncludeTo(fromRev, toRev string) ([]Commit, error) { if fromRev == "" { fromRev = head