aboutsummaryrefslogtreecommitdiff
path: root/object/store/packed/internal/ingest/progress_write.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 14:28:13 +0000
committerGravatar Runxi Yu2026-03-30 14:28:13 +0000
commita4eeb727468a178a4de0dfc718828f26740484ac (patch)
tree4318d38d49facc80e2e2186f5919fa656be3b31f /object/store/packed/internal/ingest/progress_write.go
parentobject/store/packed: Make store own root, algo, opts (diff)
signatureNo 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.go11
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()
+ }
+}