...
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
9
10at 2018-04-17T15:43:22-04:00
11unquote ''
12cp stdout README
13git add README
14git commit -a -m 'empty README'
15git branch -m master
16git tag v1.2.3
17
18at 2018-04-17T15:45:48-04:00
19git branch v2
20git checkout v2
21echo 'v2'
22cp stdout v2
23git add v2
24git commit -a -m 'v2'
25git tag v2.3
26git tag v2.0.1
27git branch v2.3.4
28
29at 2018-04-17T16:00:19-04:00
30echo 'intermediate'
31cp stdout foo.txt
32git add foo.txt
33git commit -a -m 'intermediate'
34
35at 2018-04-17T16:00:32-04:00
36echo 'another'
37cp stdout another.txt
38git add another.txt
39git commit -a -m 'another'
40git tag v2.0.2
41
42at 2018-04-17T16:16:52-04:00
43git checkout master
44git branch v3
45git checkout v3
46mkdir v3/sub/dir
47echo 'v3/sub/dir/file'
48cp stdout v3/sub/dir/file.txt
49git add v3
50git commit -a -m 'add v3/sub/dir/file.txt'
51
52at 2018-04-17T22:23:00-04:00
53git checkout master
54git tag -a v1.2.4-annotated -m 'v1.2.4-annotated'
55
56git show-ref --tags --heads
57cmp stdout .git-refs
58
59-- .git-refs --
60ede458df7cd0fdca520df19a33158086a8a68e81 refs/heads/master
619d02800338b8a55be062c838d1f02e0c5780b9eb refs/heads/v2
6276a00fb249b7f93091bc2c89a789dab1fc1bc26f refs/heads/v2.3.4
63a8205f853c297ad2c3c502ba9a355b35b7dd3ca5 refs/heads/v3
64ede458df7cd0fdca520df19a33158086a8a68e81 refs/tags/v1.2.3
65b004e48a345a86ed7a2fb7debfa7e0b2f9b0dd91 refs/tags/v1.2.4-annotated
6676a00fb249b7f93091bc2c89a789dab1fc1bc26f refs/tags/v2.0.1
679d02800338b8a55be062c838d1f02e0c5780b9eb refs/tags/v2.0.2
6876a00fb249b7f93091bc2c89a789dab1fc1bc26f refs/tags/v2.3
View as plain text