diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-12-17 15:46:57 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-01-03 10:31:18 +0000 |
| commit | 96d578a30a157fa6dc4c66f95f4cab953fbebfb7 (patch) | |
| tree | 72446ff1f5cd4c13405f1abe0c3c0611b4aacc4c /pkg/vcs/vcs.go | |
| parent | d3ccff6372e07c6aabd02b5da419aa6492b5f0ad (diff) | |
pkg/vcs: extend ListCommitHashes
Support filtering by the commit date.
Diffstat (limited to 'pkg/vcs/vcs.go')
| -rw-r--r-- | pkg/vcs/vcs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go index cb32a4071..494e9a673 100644 --- a/pkg/vcs/vcs.go +++ b/pkg/vcs/vcs.go @@ -63,7 +63,7 @@ type Repo interface { Contains(commit string) (bool, error) // ListCommitHashes lists all commit hashes reachable from baseCommit. - ListCommitHashes(baseCommit string) ([]string, error) + ListCommitHashes(baseCommit string, from time.Time) ([]string, error) // Object returns the contents of a git repository object at the particular moment in history. Object(name, commit string) ([]byte, error) |
