mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
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;
|
||
|
}
|
||
|
}
|
||
|
}
|