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

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

View as plain text