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