mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
bumpy da cs
This commit is contained in:
parent
f1570cc168
commit
6052469976
2 changed files with 2 additions and 24 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue