diff options
| author | 2026-03-08 14:15:55 +0800 | |
|---|---|---|
| committer | 2026-03-08 14:15:55 +0800 | |
| commit | 4a17412255e294e99f2d11e9b8458e30bbe58292 (patch) | |
| tree | 7d4b83d37abad439c61a5d626cf1609c0b3727d6 /format/pack/ingest/api.go | |
| parent | internal/progress: Add progress meter (diff) | |
| signature | No signature | |
format/pack/ingest: Use progress API
Diffstat (limited to 'format/pack/ingest/api.go')
| -rw-r--r-- | format/pack/ingest/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/format/pack/ingest/api.go b/format/pack/ingest/api.go index 227f6a23..5df09213 100644 --- a/format/pack/ingest/api.go +++ b/format/pack/ingest/api.go @@ -23,6 +23,10 @@ type Options struct { // // When nil, no progress output is emitted. Progress io.Writer + // ProgressFlush flushes transport output after progress writes. + // + // When nil, no explicit flush is attempted. + ProgressFlush func() error // RequireTrailingEOF requires the source to hit EOF after the pack trailer. // // This is suitable for exact pack-file readers, but should be disabled for |
