...
1handle git
2
3env GIT_AUTHOR_NAME='Russ Cox'
4env GIT_AUTHOR_EMAIL='rsc@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-07-17T12:41:39-04:00
12cp x_cf92c7b.go x.go
13git add x.go
14git commit -m 'initial commit'
15
16at 2018-07-17T12:41:57-04:00
17cp x_52853eb.go x.go
18git commit -m 'add X' x.go
19
20at 2018-07-17T12:42:07-04:00
21cp x_7fff7f3.go x.go
22git commit -m 'gofmt' x.go
23git tag v1.0.0
24
25at 2018-07-17T12:42:28-04:00
26cp x_fa4f5d6.go x.go
27git commit -m 'X->XX' x.go
28
29at 2018-07-17T12:42:36-04:00
30cp x_d7ae1e4.go x.go
31git commit -m 'gofmt' x.go
32git tag v2.0.0
33
34at 2018-07-17T12:42:53-04:00
35cp x_7303f77.go x.go
36git commit -m 'add XXX' x.go
37
38at 2018-07-17T12:47:59-04:00
39git checkout v1.0.0
40cp x_1abc5ff.go x.go
41git commit -m 'comment' x.go
42
43at 2018-07-17T12:48:22-04:00
44cp x_731e3b1.go x.go
45git commit -m 'prerelease' x.go
46git tag v1.1.0-pre
47
48at 2018-07-17T12:48:49-04:00
49cp x_fb3c628.go x.go
50git commit -m 'working' x.go
51
52at 2018-07-17T12:49:05-04:00
53cp x_9f6f860.go x.go
54git commit -m 'v1.2.0' x.go
55git tag v1.2.0
56
57at 2018-07-17T12:49:42-04:00
58cp x_d2d4c3e.go x.go
59git commit -m 'more' x.go
60git tag morework
61
62git show-ref --tags --heads
63cmp stdout .git-refs
64
65-- .git-refs --
667303f77963648d5f1ec5e55eccfad8e14035866c refs/heads/master
67d2d4c3ea66230e7ad6fbd8f0ecd8c0f851392364 refs/tags/morework
687fff7f3417faa4a795f9518bc2bef05147a1d6c0 refs/tags/v1.0.0
69731e3b12a0272dcafb560b8fa6a4e9ffb20ef5c9 refs/tags/v1.1.0-pre
709f6f860fe5c92cd835fdde2913aca8db9ce63373 refs/tags/v1.2.0
71d7ae1e4b368320e7a577fc8a9efc1e78aacac52a refs/tags/v2.0.0
72-- x_1abc5ff.go --
73package legacytest
74
75// add comment
76const X = 1
77-- x_52853eb.go --
78package legacytest
79const X = 1
80-- x_7303f77.go --
81package legacytest
82
83const XX = 2
84
85const XXX = 3
86-- x_731e3b1.go --
87package legacytest
88
89// add comment again
90const X = 1
91-- x_7fff7f3.go --
92package legacytest
93
94const X = 1
95-- x_9f6f860.go --
96package legacytest
97
98// add comment again!!!
99const X = 1
100-- x_cf92c7b.go --
101package legacytest
102-- x_d2d4c3e.go --
103package legacytest
104
105// add comment hack hack hack
106const X = 1
107-- x_d7ae1e4.go --
108package legacytest
109
110const XX = 2
111-- x_fa4f5d6.go --
112package legacytest
113const XX = 2
114-- x_fb3c628.go --
115package legacytest
116
117// add comment fixed
118const X = 1
View as plain text