Skip to content

Commit

Permalink
Generate a string constant for GitIsDirty
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
kzu authored Jun 15, 2017
1 parent 66e90ad commit d3b4446
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/GitInfo/build/GitInfo.cs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma warning disable 0436

#if ADDMETADATA
[assembly: System.Reflection.AssemblyMetadata("GitInfo.IsDirty", RootNamespace.ThisAssembly.Git.IsDirty)]
[assembly: System.Reflection.AssemblyMetadata("GitInfo.IsDirty", RootNamespace.ThisAssembly.Git.IsDirtyString)]
[assembly: System.Reflection.AssemblyMetadata("GitInfo.Branch", RootNamespace.ThisAssembly.Git.Branch)]
[assembly: System.Reflection.AssemblyMetadata("GitInfo.Commit", RootNamespace.ThisAssembly.Git.Commit)]
[assembly: System.Reflection.AssemblyMetadata("GitInfo.Sha", RootNamespace.ThisAssembly.Git.Sha)]
Expand Down Expand Up @@ -34,7 +34,10 @@
{
/// <summary>IsDirty: $GitIsDirty$</summary>
public const bool IsDirty = $GitIsDirty$;


/// <summary>IsDirtyString: $GitIsDirty$</summary>
public const string IsDirtyString = "$GitIsDirty$";

/// <summary>Branch: $GitBranch$</summary>
public const string Branch = "$GitBranch$";

Expand Down

0 comments on commit d3b4446

Please sign in to comment.