enable commit graph feature
git config core.commitGraph true
Now you have to recreate the graph file update commit-graph
git show-ref -s | git commit-graph write --stdin-commits
enable commit graph feature
git config core.commitGraph true
Now you have to recreate the graph file update commit-graph
git show-ref -s | git commit-graph write --stdin-commits
<# | |
.SYNOPSIS | |
Finds all test .dlls and adds them to a code coverage run. | |
Generates a code coverage report. | |
.EXAMPLE | |
"ExecuteCodeCoverage.ps1 -testDllDir . -reportOutDir .\report -reportOutFormat html -testRunnerDir ." | |
All arguments are optional. Should work like magic. | |
#> | |
param ( |
# Multistage build | |
FROM golang:alpine as build | |
## stage1: build app, make use of /go/src | |
RUN mkdir /go/src/app | |
WORKDIR /go/src/app | |
ADD ./src/main.go /go/src/app | |
RUN go build -o /bin/app |
<# | |
.SYNOPSIS | |
Update Software Version. | |
.DESCRIPTION | |
Finds SharedAssemblyInfo.cs in the solution and installer script in deployment directory. | |
Replaces code parts that define the software version in those files. | |
.EXAMPLE | |
"ChangeSoftwareVersion.ps1 -LocalPath . -Version 0.99.99" | |
.PARAMETER LocalPath | |
The path to the branch, with the installer script and SharedAssemblyInfo, which contain the software version. |
Get-EventLog -LogName System -Source Microsoft-Windows-Winlogon -After (Get-Date).AddDays(-7) | where {$_.InstanceId -eq 7001} |
Naming file with build restriction foo_${GOOS}.go
Adding build directives to the top of the file //+build linux,386 darwin windows
on build system set $GOOS variable to target system (no matter which OS is your build system linux<>windows) GOOS = windows go build main.go
cpu architecture can be set
# Multistage build | |
FROM golang:alpine as build | |
## stage1: build app, make use of /go/src | |
RUN mkdir /go/src/app | |
WORKDIR /go/src/app | |
## copy sources to build-image | |
ADD ./src/main.go /go/src/app | |
RUN go build -o /bin/app |
#Requires -Version 3 | |
<# | |
.SYNOPSIS | |
<Overview of script> | |
.DESCRIPTION | |
<Brief description of script> | |
.PARAMETER <Parameter_Name> | |
<Brief description of parameter input required. Repeat this attribute if required> | |
.INPUTS | |
<Inputs if any, otherwise state None> |
Basically all cmdlets look like so: verb-noun
{ | |
"jest_test_boilerplate": { | |
"prefix": "test_jest", | |
"body": [ | |
"test(\"$1\", ($2) => {", | |
"\t$3", | |
"});" | |
], | |
"description": "basic boilerplate for a jest test case" | |
}, |