...
1handle git
2
3env GIT_AUTHOR_NAME='Gopher'
4env GIT_AUTHOR_EMAIL='gopher@golang.org'
5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8git init
9git checkout -b master
10
11at 2018-01-01T10:00:00-05:00
12git add prefercompatible.go
13git commit -m 'v1.5.1'
14git tag v1.5.1
15
16at 2018-01-02T10:00:00-05:00
17cp go.mod.v1 go.mod
18git add go.mod
19git commit -m 'add go.mod'
20git tag v1.5.2
21
22at 2018-01-03T10:00:00-05:00
23git checkout v1.5.1
24git commit --allow-empty -m 'v2'
25git tag v2.0.0
26
27at 2018-01-04T10:00:00-05:00
28cp go.mod.v2 go.mod
29git add go.mod
30git commit -m 'add v2 go.mod'
31git tag v2.0.1
32
33at 2018-01-05T10:00:00-05:00
34git commit --allow-empty -m 'v2.1'
35git tag v2.1.0
36
37git checkout master
38
39git show-ref --tags --heads
40cmp stdout .git-refs
41
42-- .git-refs --
4317354ea3a81eb684eb1aae80a7b52a5034bd34d2 refs/heads/master
44e79838949df193e551567d3f245720f7a6520569 refs/tags/v1.5.1
4517354ea3a81eb684eb1aae80a7b52a5034bd34d2 refs/tags/v1.5.2
467a6f62732689a8e013c3ab4e5e0566ab4969a46e refs/tags/v2.0.0
4745f40e4783d7a9908c85e6dc48603fce3dd6ffad refs/tags/v2.0.1
4870d729681ff71f5dd03dd7142c78fb98f35065fe refs/tags/v2.1.0
49-- prefercompatible.go --
50package prefercompatible
51-- go.mod.v1 --
52module vcs-test.golang.org/git/prefercompatible.git
53
54go 1.12
55-- go.mod.v2 --
56module vcs-test.golang.org/git/prefercompatible.git/v2
57
58go 1.12
View as plain text