1 handle git
2
3 env GIT_AUTHOR_NAME='Russ Cox'
4 env GIT_AUTHOR_EMAIL='rsc@golang.org'
5 env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6 env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8 git init
9
10 at 2018-04-25T10:59:24-04:00
11 git add p1 p2
12 git commit -m 'initial commit'
13 git branch -m master
14
15 git log --oneline --decorate=short
16 cmp stdout .git-log
17
18 -- .git-log --
19 6b4ba8b (HEAD -> master) initial commit
20 -- p1/p1.go --
21 package p1
22
23 import _ "vcs-test.golang.org/git/modlegacy1-old.git/p2"
24 import _ "vcs-test.golang.org/git/modlegacy1-new.git/p1"
25 import _ "vcs-test.golang.org/git/modlegacy1-new.git"
26 -- p2/p2.go --
27 package p2
28
View as plain text