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