From 688223878dbf223347dd53d65963b4aa93ba2e72 Mon Sep 17 00:00:00 2001 From: hau Date: Tue, 10 Nov 2020 23:36:32 +0700 Subject: [PATCH] docs: add comment for git methods --- pkg/git/repository.go | 2 ++ 1 file changed, 2 insertions(+) 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