From 3e884f5f3d42cbc4874a04da31dde10314b0cfad Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 26 Mar 2026 09:17:14 +0000 Subject: format: Move commitgraph and packfile here --- format/packfile/ingest/progress_write.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 format/packfile/ingest/progress_write.go (limited to 'format/packfile/ingest/progress_write.go') diff --git a/format/packfile/ingest/progress_write.go b/format/packfile/ingest/progress_write.go new file mode 100644 index 00000000..5b9f184b --- /dev/null +++ b/format/packfile/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.ProgressFlush != nil { + _ = state.opts.ProgressFlush() + } +} -- cgit v1.3.1-10-gc9f91