File tree 24 files changed +41
-35
lines changed
src/cmd/go/testdata/vcstest
24 files changed +41
-35
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-07-15T17:16:47-04:00
12
11
git add go.mod main.go
13
12
git commit -m 'all: add go.mod and main.go'
13
+ git branch -m master
14
14
git tag v1.0.0
15
15
16
16
at 2019-07-15T17:17:27-04:00
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-10-07T14:15:32-04:00
12
11
git add go.mod
13
12
git commit -m 'add go.mod file without go source files'
13
+ git branch -m master
14
14
git tag v2.0.0
15
15
16
16
git log --oneline --decorate=short
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2018-07-03T22:35:49-04:00
12
11
git add go.mod
13
12
git commit -m 'initial'
13
+ git branch -m master
14
14
15
15
git log --oneline
16
16
cmp stdout .git-log
Original file line number Diff line number Diff line change @@ -6,25 +6,25 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2018-04-17T15:43:22-04:00
12
11
unquote ''
13
12
cp stdout README
14
13
git add README
15
14
git commit -a -m 'empty README'
15
+ git branch -m master
16
16
git tag v1.2.3
17
17
18
18
at 2018-04-17T15:45:48-04:00
19
- git branch -c v2
19
+ git branch v2
20
20
git checkout v2
21
21
echo 'v2'
22
22
cp stdout v2
23
23
git add v2
24
24
git commit -a -m 'v2'
25
25
git tag v2.3
26
26
git tag v2.0.1
27
- git branch -c v2.3.4
27
+ git branch v2.3.4
28
28
29
29
at 2018-04-17T16:00:19-04:00
30
30
echo 'intermediate'
@@ -40,7 +40,8 @@ git commit -a -m 'another'
40
40
git tag v2.0.2
41
41
42
42
at 2018-04-17T16:16:52-04:00
43
- git branch -c master v3
43
+ git checkout master
44
+ git branch v3
44
45
git checkout v3
45
46
mkdir v3/sub/dir
46
47
echo 'v3/sub/dir/file'
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME='Russ Cox'
6
6
env GIT_COMMITTER_EMAIL='
[email protected] '
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2017-09-21T21:05:58-04:00
12
11
git add hello.go
13
12
git commit -a -m 'hello'
13
+ git branch -m master
14
14
15
15
git log --oneline --decorate=short
16
16
cmp stdout .git-log
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-04-03T13:30:35-04:00
12
11
git add go.mod
13
12
git commit -m 'all: initialize module'
13
+ git branch -m master
14
14
15
15
at 2019-09-04T14:39:48-04:00
16
16
git add main.go
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-09-05T14:07:43-04:00
12
11
git add main.go
13
12
git commit -a -m 'add main.go'
13
+ git branch -m master
14
14
15
15
git log --oneline --decorate=short
16
16
cmp stdout .git-log
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2018-04-25T11:00:57-04:00
12
11
git add go.mod new.go p1 p2
13
12
git commit -m 'initial commit'
13
+ git branch -m master
14
14
15
15
git log --oneline --decorate=short
16
16
cmp stdout .git-log
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2018-04-25T10:59:24-04:00
12
11
git add p1 p2
13
12
git commit -m 'initial commit'
13
+ git branch -m master
14
14
15
15
git log --oneline --decorate=short
16
16
cmp stdout .git-log
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-07-15T17:20:47-04:00
12
11
git add go.mod main.go
13
12
git commit -m 'all: add go.mod and main.go'
13
+ git branch -m master
14
14
15
15
git log --oneline --decorate=short
16
16
cmp stdout .git-log
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ git init
10
10
at 2022-02-23T13:48:02-05:00
11
11
git add README.txt
12
12
git commit -m 'initial state'
13
+ git branch -m main
13
14
git tag 'v2.0.0+incompatible'
14
15
15
16
at 2022-02-23T13:48:35-05:00
@@ -19,7 +20,7 @@ git commit -m 'migrate to Go modules'
19
20
git tag 'v0.1.0+build-metadata'
20
21
21
22
at 2022-02-23T14:41:55-05:00
22
- git branch -c v3-dev
23
+ git branch v3-dev
23
24
git checkout v3-dev
24
25
cp v3/go.mod go.mod
25
26
git commit go.mod -m 'update to /v3'
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
8
8
at 2019-05-09T18:35:00-04:00
9
9
10
10
git init
11
- git branch -m master
12
11
13
12
git add sub
14
13
git commit -m 'create module sub'
14
+ git branch -m master
15
15
16
16
echo 'v0.1.0'
17
17
cp stdout status
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2018-07-03T22:31:01-04:00
12
11
git add go.mod
13
12
git commit -a -m 'v1'
13
+ git branch -m master
14
14
git tag start
15
15
16
- git branch -c v2
16
+ git branch v2
17
17
18
18
at 2018-07-03T22:33:47-04:00
19
19
echo 'before v0.0.0-pre1'
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ git init
11
11
12
12
git add go.mod p.go
13
13
git commit -m 'create module retract-pseudo'
14
+ git branch -m main
14
15
git tag v1.0.0
15
16
16
17
git mv p.go q.go
Original file line number Diff line number Diff line change @@ -10,17 +10,18 @@ git init
10
10
at 2022-02-02T14:15:21-05:00
11
11
git add pkg go.mod
12
12
git commit -a -m 'pkg: add empty package'
13
+ git branch -m main
13
14
git tag 'v0.1.0'
14
15
15
16
at 2022-02-02T14:19:44-05:00
16
- git branch -c 'v1.0.0'
17
- git branch -c 'v2.0.0'
17
+ git branch 'v1.0.0'
18
+ git branch 'v2.0.0'
18
19
git checkout 'v1.0.0'
19
20
cp v1/pkg/pkg.go pkg/pkg.go
20
21
git commit -a -m 'pkg: start developing toward v1.0.0'
21
22
22
23
at 2022-02-03T10:53:13-05:00
23
- git branch -c 'v3.0.0-devel'
24
+ git branch 'v3.0.0-devel'
24
25
git checkout 'v3.0.0-devel'
25
26
git checkout v0.1.0 pkg/pkg.go
26
27
git commit -a -m 'pkg: remove panic'
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
8
8
at 2019-05-09T18:56:25-04:00
9
9
10
10
git init
11
- git branch -m master
12
11
13
12
git add go.mod tagtests.go
14
13
git commit -m 'create module tagtests'
15
- git branch -c b
14
+ git branch -m master
15
+ git branch b
16
16
17
17
git add v0.2.1
18
18
git commit -m 'v0.2.1'
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-04-03T11:52:15-04:00
12
11
env GIT_AUTHOR_DATE=2019-04-03T11:44:11-04:00
13
12
git add go.mod
14
13
git commit -m 'all: add go.mod'
14
+ git branch -m master
15
15
git tag 'v2.0.0'
16
16
17
17
git show-ref --tags --heads
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ git init
10
10
at 2022-02-22T15:53:33-05:00
11
11
git add v2sub.go v2
12
12
git commit -m 'all: add package v2sub and v2sub/v2'
13
+ git branch -m main
13
14
git tag v2.0.0
14
15
15
16
at 2022-02-22T15:55:07-05:00
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2019-07-15T14:01:24-04:00
12
11
env GIT_AUTHOR_DATE=2019-07-15T13:59:34-04:00
13
12
git add go.mod v3pkg.go
14
13
git commit -a -m 'all: add go.mod with v3 path'
14
+ git branch -m master
15
15
git tag 'v3.0.0'
16
16
17
17
git show-ref --tags --heads
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6
6
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
7
8
8
git init
9
- git branch -m master
10
9
11
10
at 2018-02-19T17:21:09-05:00
12
11
git add LICENSE README.md
13
12
git commit -m 'initial commit'
13
+ git branch -m master
14
14
15
15
git checkout --detach HEAD
16
16
Original file line number Diff line number Diff line change @@ -9,25 +9,25 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
9
9
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
10
10
11
11
git init
12
- git branch -m master
13
12
14
13
at 2018-04-17T15:43:22-04:00
15
14
unquote ''
16
15
cp stdout README
17
16
git add README
18
17
git commit -a -m 'empty README'
18
+ git branch -m master
19
19
git tag v1.2.3
20
20
21
21
at 2018-04-17T15:45:48-04:00
22
- git branch -c v2
22
+ git branch v2
23
23
git checkout v2
24
24
echo 'v2'
25
25
cp stdout v2
26
26
git add v2
27
27
git commit -a -m 'v2'
28
28
git tag v2.3
29
29
git tag v2.0.1
30
- git branch -c v2.3.4
30
+ git branch v2.3.4
31
31
git tag branch-v2.3.4
32
32
33
33
at 2018-04-17T16:00:19-04:00
@@ -45,7 +45,8 @@ git tag v2.0.2
45
45
git tag branch-v2
46
46
47
47
at 2018-04-17T16:16:52-04:00
48
- git branch -c master v3
48
+ git checkout master
49
+ git branch v3
49
50
git checkout v3
50
51
mkdir v3/sub/dir
51
52
echo 'v3/sub/dir/file'
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
8
8
env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
9
9
10
10
git init
11
- git branch -m master
12
11
13
12
# 0
14
13
at 2018-02-19T17:21:09-05:00
15
14
git add LICENSE README.md
16
15
git commit -m 'initial commit'
16
+ git branch -m master
17
17
18
18
# 1
19
- git branch -c mybranch
19
+ git branch mybranch
20
20
git checkout mybranch
21
21
22
22
at 2018-02-19T18:10:06-05:00
@@ -30,8 +30,8 @@ git tag v1.0.0
30
30
git tag v2.0.0
31
31
git tag mytag
32
32
33
- git branch -c v1
34
- git branch -c v2
33
+ git branch v1
34
+ git branch v2
35
35
git checkout v2
36
36
37
37
# 2
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ git init
28
28
git config --add core.ignorecase true
29
29
git config --add core.precomposeunicode true
30
30
31
- git branch -m master
32
31
git add README
33
32
at 2017-09-22T11:39:03-04:00
34
33
git commit -a -m 'README'
34
+ git branch -m master
35
35
36
36
git rev-parse HEAD
37
37
stdout '^7f800d2ac276dd7042ea0e8d7438527d236fd098$'
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ git init
27
27
git config --add core.ignorecase true
28
28
git config --add core.precomposeunicode true
29
29
30
- git branch -m master
31
30
git add README
32
31
at 2017-09-22T11:39:03-04:00
33
32
git commit -a -m 'README'
33
+ git branch -m master
34
34
35
35
git rev-parse HEAD
36
36
stdout '^7f800d2ac276dd7042ea0e8d7438527d236fd098$'
You can’t perform that action at this time.
0 commit comments