You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$lastCommitLog= Exec { git log --max-count=1--pretty=format:%H HEAD } "Cannot execute git log. Ensure that the current directory is a git repository and that git is available on PATH."
81
-
return$lastCommitLog
82
-
}
83
-
84
-
FunctionGet-GitTimestamp
85
-
{
86
-
$lastCommitLog= Exec { git log --max-count=1--pretty=format:%aD HEAD } "Cannot execute git log. Ensure that the current directory is a git repository and that git is available on PATH."
87
-
return$lastCommitLog
88
-
}
89
-
90
-
FunctionGet-GitBranchOrTag
91
-
{
92
-
$revParse= Exec { git rev-parse --abbrev-ref HEAD } "Cannot execute git rev-parse. Ensure that the current directory is a git repository and that git is available on PATH."
93
-
if ($revParse-ne"HEAD") {
94
-
return$revParse
95
-
}
96
-
97
-
$describeTags= Exec { git describe --tags } "Cannot execute git describe. Ensure that the current directory is a git repository and that git is available on PATH."
0 commit comments