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 branch -m main
13 git tag v0.1.0
14 git tag v3.1.0
15
16 git add go.mod
17 git commit -m 'create module invalid-version'
18
19 git add unicode/unicode.go
20 git commit -m 'add unicode package'
21
22 at 2017-12-13T10:25:48-00:00
23
24 git add unicode/unicode2.go
25 git commit -m 'another commit with tag'
26 git tag v0.2.0
27 git tag v4.0.0
28
29 git add 3.txt
30 git commit -m 'yet another commit'
31
32 git rm go.mod
33 git commit -m 'remove go.mod'
34
35 git tag v5.0.0
36
37 git log --oneline --decorate=short
38 cmp stdout .git-log
39
40 -- .git-log --
41 dbb861d (HEAD -> main, tag: v5.0.0) remove go.mod
42 5213b9f yet another commit
43 a72be5e (tag: v4.0.0, tag: v0.2.0) another commit with tag
44 90ac26b add unicode package
45 1732873 create module invalid-version
46 d047a7b (tag: v3.1.0, tag: v0.1.0) initial commit
47 -- go.mod --
48 module vcs-test.golang.org/go/invalid-version
49
50 go 1.26.0
51 -- 3.txt --
52 -- unicode/unicode.go --
53 package unicode
54 -- unicode/unicode2.go --
55 package unicode
View as plain text