bumpy da cs

This commit is contained in:
Kaz Wolfe 2024-11-13 08:23:17 -08:00
parent f1570cc168
commit 6052469976
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
2 changed files with 2 additions and 24 deletions

View file

@ -162,29 +162,7 @@ public static class Util
}
/// <summary>
/// Gets the amount of commits in the current branch, or null if undetermined.
/// </summary>
/// <returns>The amount of commits in the current branch.</returns>
[Obsolete($"Planned for removal in API 11. Use {nameof(GetScmVersion)} for version tracking.")]
public static int? GetGitCommitCount()
{
if (gitCommitCountInternal != null)
return gitCommitCountInternal.Value;
var asm = typeof(Util).Assembly;
var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>();
var value = attrs.First(a => a.Key == "GitCommitCount").Value;
if (value == null)
return null;
gitCommitCountInternal = int.Parse(value);
return gitCommitCountInternal.Value;
}
/// <summary>
/// Gets the git hash value from the assembly
/// or null if it cannot be found.
/// Gets the git hash value from the assembly or null if it cannot be found.
/// </summary>
/// <returns>The git hash of the assembly.</returns>
public static string? GetGitHashClientStructs()

@ -1 +1 @@
Subproject commit 039aae133cc8bed940e85d7bb02e40d3ad6b3435
Subproject commit 78c39ef1318525d766cdf31fd9a32e6f1c7cb453