8000 Adds Depth to FetchOptions allowing for shallow cloning by andersklepaker · Pull Request #2070 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content

Adds Depth to FetchOptions allowing for shallow cloning #2070

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

Merged
Merged
Changes from 1 commit
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
Next Next commit
Added Depth as a fetch option
  • Loading branch information
andersklepaker committed Jan 2, 2024
commit 3495bf5d92ef54c53d3604190d1ca4e7fff8a417
8 changes: 8 additions & 0 deletions LibGit2Sharp/FetchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ public sealed class FetchOptions : FetchOptionsBase
/// </summary>
public bool? Prune { get; set; }

/// <summary>
/// Specifies the depth of the fetch to perform.
/// <para>
/// Default value is 0 (full) fetch.
/// </para>
/// </summary>
public int Depth { get; set; } = 0;

/// <summary>
/// Get/Set the custom headers.
///
Expand Down
0