Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually switch to "Resolving Deltas" #4080

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/GitTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ import LibGit2
using Printf

use_cli_git() = Base.get_bool_env("JULIA_PKG_USE_CLI_GIT", false)
const RESOLVING_DELTAS_HEADER = "Resolving Deltas:"

function transfer_progress(progress::Ptr{LibGit2.TransferProgress}, p::Any)
progress = unsafe_load(progress)
@assert haskey(p, :transfer_progress)
bar = p[:transfer_progress]
@assert typeof(bar) == MiniProgressBar
if progress.total_deltas != 0
bar.header = "Resolving Deltas:"
if bar.header != RESOLVING_DELTAS_HEADER
bar.header = RESOLVING_DELTAS_HEADER
bar.prev = 0
end
bar.max = progress.total_deltas
bar.current = progress.indexed_deltas
else
Expand Down
Loading