...

Text file src/cmd/go/testdata/vcstest/git/v2repo.txt

Documentation: cmd/go/testdata/vcstest/git

     1handle git
     2
     3env GIT_AUTHOR_NAME='Bryan C. Mills'
     4env GIT_AUTHOR_EMAIL='bcmills@google.com'
     5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7
     8git init
     9
    10at 2019-04-03T11:52:15-04:00
    11env GIT_AUTHOR_DATE=2019-04-03T11:44:11-04:00
    12git add go.mod
    13git commit -m 'all: add go.mod'
    14git branch -m master
    15git tag 'v2.0.0'
    16
    17git show-ref --tags --heads
    18cmp stdout .git-refs
    19
    20-- .git-refs --
    21203b91c896acd173aa719e4cdcb7d463c4b090fa refs/heads/master
    22203b91c896acd173aa719e4cdcb7d463c4b090fa refs/tags/v2.0.0
    23-- go.mod --
    24module vcs-test.golang.org/go/v2module/v2
    25
    26go 1.12

View as plain text