Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions LibGit2Sharp/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ public virtual void Set<T>(string key, T value, ConfigurationLevel level)
/// repo.Config.Add("test.plugin", "first");
/// </para>
/// </summary>
/// <typeparam name="T">The configuration value type</typeparam>
/// <param name="key">The key parts</param>
/// <param name="value">The value</param>
public virtual void Add(string key, string value)
Expand All @@ -682,7 +681,6 @@ public virtual void Add(string key, string value)
/// repo.Config.Add("test.plugin", "first");
/// </para>
/// </summary>
/// <typeparam name="T">The configuration value type</typeparam>
/// <param name="key">The key parts</param>
/// <param name="value">The value</param>
/// <param name="level">The configuration file which should be considered as the target of this operation</param>
Expand Down
4 changes: 4 additions & 0 deletions LibGit2Sharp/GlobalSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ public static void SetConfigSearchPaths(ConfigurationLevel level, params string[
Proxy.git_libgit2_opts_set_search_path(level, pathString);
}

/// <summary>
/// Enable or disable strict hash verification.
/// </summary>
/// <param name="enabled">true to enable strict hash verification; false otherwise.</param>
public static void SetStrictHashVerification(bool enabled)
{
Proxy.git_libgit2_opts_enable_strict_hash_verification(enabled);
Expand Down
3 changes: 3 additions & 0 deletions LibGit2Sharp/Remote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ internal Remote(RemoteHandle handle, Repository repository)
repository.RegisterForCleanup(this);
}

/// <summary>
/// The finalizer for the <see cref="Remote"/> class.
/// </summary>
~Remote()
{
Dispose(false);
Expand Down
7 changes: 7 additions & 0 deletions LibGit2Sharp/SmartSubtransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ public int CertificateCheck(Certificate cert, bool valid, string hostname)
return ret;
}

/// <summary>
/// Acquires credentials.
/// </summary>
/// <param name="cred">Receives the credentials if the operation is successful.</param>
/// <param name="user">The username.</param>
/// <param name="methods">The credential types allowed. The only supported one is <see cref="UsernamePasswordCredentials"/>. May be empty but should not be null.</param>
/// <returns>0 if successful; a non-zero error code that came from <see cref="Proxy.git_transport_smart_credentials"/> otherwise.</returns>
public int AcquireCredentials(out Credentials cred, string user, params Type[] methods)
{
// Convert the user-provided types to libgit2's flags
Expand Down