diff options
| author | 2026-03-30 14:28:13 +0000 | |
|---|---|---|
| committer | 2026-03-30 14:28:13 +0000 | |
| commit | a4eeb727468a178a4de0dfc718828f26740484ac (patch) | |
| tree | 4318d38d49facc80e2e2186f5919fa656be3b31f /object/store/packed/internal/ingest/progress_write.go | |
| parent | object/store/packed: Make store own root, algo, opts (diff) | |
| signature | No signature | |
object,store/packed{,/internal/ingest}: Move from format/packfile/ingest
Diffstat (limited to 'object/store/packed/internal/ingest/progress_write.go')
| -rw-r--r-- | object/store/packed/internal/ingest/progress_write.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/object/store/packed/internal/ingest/progress_write.go b/object/store/packed/internal/ingest/progress_write.go new file mode 100644 index 00000000..afb39305 --- /dev/null +++ b/object/store/packed/internal/ingest/progress_write.go @@ -0,0 +1,11 @@ +package ingest + +import "codeberg.org/lindenii/furgit/internal/utils" + +func writeProgressf(state *ingestState, format string, args ...any) { + utils.BestEffortFprintf(state.opts.Progress, format, args...) + + if state.opts.Progress != nil { + _ = state.opts.Progress.Flush() + } +} |
