1 handle git
2
3 env GIT_AUTHOR_NAME='Michael Matloob'
4 env GIT_AUTHOR_EMAIL='matloob@golang.org'
5 env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6 env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8 at 2017-09-15T03:28:32-00:00
9
10 git init
11 git commit --allow-empty -m 'initial commit'
12 git tag v0.1.0
13 git tag v3.1.0
14
15 git add go.mod
16 git commit -m 'create module invalid-version'
17
18 git add unicode/unicode.go
19 git commit -m 'add unicode package'
20
21 at 2017-12-13T10:25:48-00:00
22
23 git add unicode/unicode2.go
24 git commit -m 'another commit with tag'
25 git tag v0.2.0
26 git tag v4.0.0
27
28 git add 3.txt
29 git commit -m 'yet another commit'
30
31 git rm go.mod
32 git commit -m 'remove go.mod'
33
34 git tag v5.0.0
35
36 git log --oneline --decorate=short
37 cmp stdout .git-log
38
39 -- .git-log --
40 dbb861d (HEAD -> main, tag: v5.0.0) remove go.mod
41 5213b9f yet another commit
42 a72be5e (tag: v4.0.0, tag: v0.2.0) another commit with tag
43 90ac26b add unicode package
44 1732873 create module invalid-version
45 d047a7b (tag: v3.1.0, tag: v0.1.0) initial commit
46 -- go.mod --
47 module vcs-test.golang.org/go/invalid-version
48
49 go 1.26.0
50 -- 3.txt --
51 -- unicode/unicode.go --
52 package unicode
53 -- unicode/unicode2.go --
54 package unicode
View as plain text