...

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

Documentation: cmd/go/testdata/vcstest/git

     1handle git
     2
     3env GIT_AUTHOR_NAME='Jay Conrod'
     4env GIT_AUTHOR_EMAIL='jayconrod@google.com'
     5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7
     8at 2019-05-09T18:56:25-04:00
     9
    10git init
    11
    12git add go.mod tagtests.go
    13git commit -m 'create module tagtests'
    14git branch -m master
    15git branch b
    16
    17git add v0.2.1
    18git commit -m 'v0.2.1'
    19git tag 'v0.2.1'
    20
    21git checkout b
    22git add 'v0.2.2'
    23git commit -m 'v0.2.2'
    24git tag 'v0.2.2'
    25
    26git checkout master
    27git merge b -m 'merge'
    28
    29git show-ref --tags --heads
    30cmp stdout .git-refs
    31
    32-- .git-refs --
    3359356c8cd18c5fe9a598167d98a6843e52d57952 refs/heads/b
    34c7818c24fa2f3f714c67d0a6d3e411c85a518d1f refs/heads/master
    35101c49f5af1b2466332158058cf5f03c8cca6429 refs/tags/v0.2.1
    3659356c8cd18c5fe9a598167d98a6843e52d57952 refs/tags/v0.2.2
    37-- go.mod --
    38module vcs-test.golang.org/git/tagtests.git
    39-- tagtests.go --
    40package tagtests
    41-- v0.2.1 --
    42v0.2.1
    43-- v0.2.2 --
    44v0.2.2

View as plain text