mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
9f3fca8fd7
* Show the git commit of the current build of BTCPay * Fix build Co-authored-by: d11n <mail@dennisreimann.de>
19 lines
383 B
C#
19 lines
383 B
C#
using System;
|
|
|
|
namespace BTCPayServer
|
|
{
|
|
[AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
|
|
public sealed class GitCommitAttribute : Attribute
|
|
{
|
|
public string SHA
|
|
{
|
|
get;
|
|
}
|
|
public string ShortSHA => SHA.Substring(0, 9);
|
|
public GitCommitAttribute(string sha)
|
|
{
|
|
SHA = sha;
|
|
}
|
|
}
|
|
}
|