From c689adc72a1fbbc263bbc447b8af75d75d7b7719 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Mon, 23 Feb 2026 11:30:23 -0800 Subject: [PATCH] Add logs --- gitindex/index.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gitindex/index.go b/gitindex/index.go index 084e59193..5bb499c63 100644 --- a/gitindex/index.go +++ b/gitindex/index.go @@ -469,8 +469,13 @@ func indexGitRepo(opts Options, config gitIndexConfig) (bool, error) { } } - if opts.Incremental && opts.BuildOptions.IncrementalSkipIndexing() { - return false, nil + if opts.Incremental { + state, _ := opts.BuildOptions.IndexState() + if state == build.IndexStateEqual { + log.Printf("incremental: skipping repository=%q reason=%s", opts.BuildOptions.RepositoryDescription.Name, state) + return false, nil + } + log.Printf("incremental: indexing repository=%q reason=%s", opts.BuildOptions.RepositoryDescription.Name, state) } // branch => (path, sha1) => repo.