-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag.ps1
More file actions
23 lines (22 loc) · 1.29 KB
/
Copy pathtag.ps1
File metadata and controls
23 lines (22 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$Tags = @{
"Simple Asp.Net MVC application" = "01_TrivialStart"
"Introduce a web processor library (Lib)" = "02_WebProcessorLibrary"
"Allow dotnet command line to build and publish without dependency on VS" = "03_EnableDotnetBuild"
"Fix VS Build Acceleration by setting Main published bin directory as the actual project bin directory" = "04_FixVSBuildAccel"
"Allow dotnet watch publish to handle Lib content files" = "05_EnableDotnetWatch"
"Instruct FUTDC to trigger the web application build" = "06_FUTDC"
"Implement compilation of Asp.Net views" = "07_AspNetCompile"
}
$Tags.GetEnumerator() | ForEach-Object {
$Comment = $_.Key
$Tag = $_.Value
$CommitId = git log --format="%H" -i --grep="$Comment"
if (!$CommitId)
{
Write-Host -ForegroundColor Red "Failed to locate the commit $Comment"
exit 1
}
Write-Host -NoNewline "$Comment `r"
git tag -f $Tag $CommitId
}
git push -f --tags