Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri authored Feb 7, 2024
2 parents 7ffd4f9 + 3f98e8d commit 40ac82f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/Fake.Tools.Git/Information.fs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ module Information =
let _, msg, _ = CommandHelper.runGitCommand repositoryDir "rev-parse --short HEAD"
msg |> String.separated ""
/// <summary>
/// Returns the short SHA1 of the current <c>HEAD</c>
/// </summary>
///
/// <param name="repositoryDir">The git repository.</param>
let getCurrentShortSHA1 repositoryDir =
let _, msg, _ = CommandHelper.runGitCommand repositoryDir "rev-parse --short HEAD"
msg |> String.separated ""

/// <summary>
/// Shows the git status
/// </summary>
///
Expand Down

0 comments on commit 40ac82f

Please sign in to comment.