aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/email
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-12-17 15:46:57 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-01-03 10:31:18 +0000
commit96d578a30a157fa6dc4c66f95f4cab953fbebfb7 (patch)
tree72446ff1f5cd4c13405f1abe0c3c0611b4aacc4c /pkg/email
parentd3ccff6372e07c6aabd02b5da419aa6492b5f0ad (diff)
pkg/vcs: extend ListCommitHashes
Support filtering by the commit date.
Diffstat (limited to 'pkg/email')
-rw-r--r--pkg/email/lore/read.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/email/lore/read.go b/pkg/email/lore/read.go
index 1cfa680b6..7489f750f 100644
--- a/pkg/email/lore/read.go
+++ b/pkg/email/lore/read.go
@@ -5,6 +5,7 @@ package lore
import (
"fmt"
+ "time"
"github.com/google/syzkaller/pkg/vcs"
)
@@ -16,7 +17,7 @@ type EmailReader struct {
// ReadArchive queries the parsed messages from a single LKML message archive.
func ReadArchive(dir string, messages chan<- *EmailReader) error {
repo := vcs.NewLKMLRepo(dir)
- commits, err := repo.ListCommitHashes("HEAD")
+ commits, err := repo.ListCommitHashes("HEAD", time.Time{})
if err != nil {
return fmt.Errorf("failed to get recent commits: %w", err)
}