...
1handle git
2
3env GIT_AUTHOR_NAME='Bryan C. Mills'
4env GIT_AUTHOR_EMAIL='bcmills@google.com'
5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8git init
9
10at 2022-02-02T14:15:21-05:00
11git add pkg go.mod
12git commit -a -m 'pkg: add empty package'
13git branch -m main
14git tag 'v0.1.0'
15
16at 2022-02-02T14:19:44-05:00
17git branch 'v1.0.0'
18git branch 'v2.0.0'
19git checkout 'v1.0.0'
20cp v1/pkg/pkg.go pkg/pkg.go
21git commit -a -m 'pkg: start developing toward v1.0.0'
22
23at 2022-02-03T10:53:13-05:00
24git branch 'v3.0.0-devel'
25git checkout 'v3.0.0-devel'
26git checkout v0.1.0 pkg/pkg.go
27git commit -a -m 'pkg: remove panic'
28git tag v4.0.0-beta.1
29
30git checkout main
31
32git show-ref --tags --heads
33cmp stdout .git-refs
34
35-- .git-refs --
3633ea7ee36f3e3f44f528664b3712c9fa0cef7502 refs/heads/main
3709c4d8f6938c7b5eeae46858a72712b8700fa46a refs/heads/v1.0.0
3833ea7ee36f3e3f44f528664b3712c9fa0cef7502 refs/heads/v2.0.0
39d59622f6e4d77f008819083582fde71ea1921b0c refs/heads/v3.0.0-devel
4033ea7ee36f3e3f44f528664b3712c9fa0cef7502 refs/tags/v0.1.0
41d59622f6e4d77f008819083582fde71ea1921b0c refs/tags/v4.0.0-beta.1
42-- go.mod --
43module vcs-test.golang.org/git/semver-branch.git
44
45go 1.16
46-- pkg/pkg.go --
47package pkg
48-- v1/pkg/pkg.go --
49package pkg
50
51func init() {
52 panic("TODO")
53}
View as plain text