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

     1  handle git
     2  
     3  env GIT_AUTHOR_NAME='Gopher'
     4  env GIT_AUTHOR_EMAIL='gopher@golang.org'
     5  env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6  env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7  
     8  git init
     9  git checkout -b master
    10  
    11  at 2018-01-01T10:00:00-05:00
    12  git add prefercompatible.go
    13  git commit -m 'v1.5.1'
    14  git tag v1.5.1
    15  
    16  at 2018-01-02T10:00:00-05:00
    17  cp go.mod.v1 go.mod
    18  git add go.mod
    19  git commit -m 'add go.mod'
    20  git tag v1.5.2
    21  
    22  at 2018-01-03T10:00:00-05:00
    23  git checkout v1.5.1
    24  git commit --allow-empty -m 'v2'
    25  git tag v2.0.0
    26  
    27  at 2018-01-04T10:00:00-05:00
    28  cp go.mod.v2 go.mod
    29  git add go.mod
    30  git commit -m 'add v2 go.mod'
    31  git tag v2.0.1
    32  
    33  at 2018-01-05T10:00:00-05:00
    34  git commit --allow-empty -m 'v2.1'
    35  git tag v2.1.0
    36  
    37  git checkout master
    38  
    39  git show-ref --tags --heads
    40  cmp stdout .git-refs
    41  
    42  -- .git-refs --
    43  17354ea3a81eb684eb1aae80a7b52a5034bd34d2 refs/heads/master
    44  e79838949df193e551567d3f245720f7a6520569 refs/tags/v1.5.1
    45  17354ea3a81eb684eb1aae80a7b52a5034bd34d2 refs/tags/v1.5.2
    46  7a6f62732689a8e013c3ab4e5e0566ab4969a46e refs/tags/v2.0.0
    47  45f40e4783d7a9908c85e6dc48603fce3dd6ffad refs/tags/v2.0.1
    48  70d729681ff71f5dd03dd7142c78fb98f35065fe refs/tags/v2.1.0
    49  -- prefercompatible.go --
    50  package prefercompatible
    51  -- go.mod.v1 --
    52  module vcs-test.golang.org/git/prefercompatible.git
    53  
    54  go 1.12
    55  -- go.mod.v2 --
    56  module vcs-test.golang.org/git/prefercompatible.git/v2
    57  
    58  go 1.12
    59  

View as plain text