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)