From d7d187c1fee103cb5fa6cb7d9b62558080c29fbc Mon Sep 17 00:00:00 2001 From: Steven Cleve <107827476+stevencl840@users.noreply.github.com> Date: Wed, 10 Dec 2025 16:27:44 +1100 Subject: [PATCH] WIP --- LibGit2Sharp/PushOptions.cs | 5 +++++ LibGit2Sharp/RemoteCallbacks.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/LibGit2Sharp/PushOptions.cs b/LibGit2Sharp/PushOptions.cs index 829eb0d60..592f1c14c 100644 --- a/LibGit2Sharp/PushOptions.cs +++ b/LibGit2Sharp/PushOptions.cs @@ -52,6 +52,11 @@ public sealed class PushOptions /// public PrePushHandler OnNegotiationCompletedBeforePush { get; set; } + /// + /// Handler for receiving textual progress from the remote. + /// + public ProgressHandler OnPushRemoteProgress { get; set; } + /// /// Get/Set the custom headers. /// diff --git a/LibGit2Sharp/RemoteCallbacks.cs b/LibGit2Sharp/RemoteCallbacks.cs index 6061b10e1..178a4077b 100644 --- a/LibGit2Sharp/RemoteCallbacks.cs +++ b/LibGit2Sharp/RemoteCallbacks.cs @@ -30,6 +30,7 @@ internal RemoteCallbacks(PushOptions pushOptions) CertificateCheck = pushOptions.CertificateCheck; PushStatusError = pushOptions.OnPushStatusError; PrePushCallback = pushOptions.OnNegotiationCompletedBeforePush; + Progress = pushOptions.OnPushRemoteProgress; } internal RemoteCallbacks(FetchOptionsBase fetchOptions)