Skip to content

Commit

Permalink
Merge pull request #1 from sitereactor/push-progress
Browse files Browse the repository at this point in the history
Adds OnPushRemoteProgress handler to PushOptions
  • Loading branch information
pablonardone committed Aug 18, 2021
2 parents f5098f4 + 6708761 commit f495c8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LibGit2Sharp/PushOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@ public sealed class PushOptions
/// information about what updates will be performed.
/// </summary>
public PrePushHandler OnNegotiationCompletedBeforePush { get; set; }

/// <summary>
/// Handler for receiving textual progress from the remote.
/// </summary>
public ProgressHandler OnPushRemoteProgress { get; set; }
}
}
1 change: 1 addition & 0 deletions LibGit2Sharp/RemoteCallbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal RemoteCallbacks(PushOptions pushOptions)
CertificateCheck = pushOptions.CertificateCheck;
PushStatusError = pushOptions.OnPushStatusError;
PrePushCallback = pushOptions.OnNegotiationCompletedBeforePush;
Progress = pushOptions.OnPushRemoteProgress;
}

internal RemoteCallbacks(FetchOptionsBase fetchOptions)
Expand Down

0 comments on commit f495c8b

Please sign in to comment.