aboutsummaryrefslogtreecommitdiff
path: root/format/pack/ingest/thin_fix.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-08 13:33:47 +0800
committerGravatar Runxi Yu2026-03-08 13:33:47 +0800
commit6820f071511ea90e04f759e6de02502ae828022f (patch)
tree08e37d510401abcf4dc58246b59cadeaff44cb1d /format/pack/ingest/thin_fix.go
parentreceivepack: Period punctuate progress messages (diff)
signatureNo signature
internal/utils: Rename WriteProgressf to FprintfBestEffort v0.1.78
Diffstat (limited to 'format/pack/ingest/thin_fix.go')
-rw-r--r--format/pack/ingest/thin_fix.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/format/pack/ingest/thin_fix.go b/format/pack/ingest/thin_fix.go
index b1d8ae7c..f97c0776 100644
--- a/format/pack/ingest/thin_fix.go
+++ b/format/pack/ingest/thin_fix.go
@@ -13,7 +13,7 @@ func maybeFixThin(state *ingestState) error {
return nil
}
- utils.WriteProgressf(
+ utils.FprintfBestEffort(
state.opts.Progress,
"fixing thin pack: %d unresolved bases\r",
len(state.unresolvedRefDeltas),
@@ -57,7 +57,7 @@ func maybeFixThin(state *ingestState) error {
total := len(baseIDs)
if total > 0 {
- utils.WriteProgressf(state.opts.Progress, "fixing thin pack: 0%% (0/%d)\r", total)
+ utils.FprintfBestEffort(state.opts.Progress, "fixing thin pack: 0%% (0/%d)\r", total)
}
for i, id := range baseIDs {
@@ -75,7 +75,7 @@ func maybeFixThin(state *ingestState) error {
done := i + 1
percent := done * 100 / total
- utils.WriteProgressf(state.opts.Progress, "fixing thin pack: %3d%% (%d/%d)\r", percent, done, total)
+ utils.FprintfBestEffort(state.opts.Progress, "fixing thin pack: %3d%% (%d/%d)\r", percent, done, total)
}
err = rewritePackHeaderAndTrailer(state)
@@ -84,7 +84,7 @@ func maybeFixThin(state *ingestState) error {
}
if state.thinFixed {
- utils.WriteProgressf(state.opts.Progress, "fixing thin pack: 100%% (%d/%d), done.\n", total, total)
+ utils.FprintfBestEffort(state.opts.Progress, "fixing thin pack: 100%% (%d/%d), done.\n", total, total)
}
return nil