1 handle git
2
3 env GIT_AUTHOR_NAME='Gopher'
4 env GIT_AUTHOR_EMAIL='gopher@golang.org'
5 env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6 env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8 git init
9
10 at 2018-09-27T20:40:31+00:00
11
12 git add .gitattributes go.mod export_subst.go
13 git commit -m 'initial commit'
14 git branch -m master
15
16 -- .gitattributes --
17 export_subst.go export-subst
18 -- go.mod --
19 module vcs-test.golang.org/git/export-subst.git
20 -- export_subst.go --
21 package export_subst
22
23 const CommitHash = "$Format:%H$"
24
View as plain text