Text file src/cmd/go/testdata/vcstest/git/semver-branch.txt

     1  handle git
     2  
     3  env GIT_AUTHOR_NAME='Bryan C. Mills'
     4  env GIT_AUTHOR_EMAIL='bcmills@google.com'
     5  env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6  env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7  
     8  git init
     9  
    10  at 2022-02-02T14:15:21-05:00
    11  git add pkg go.mod
    12  git commit -a -m 'pkg: add empty package'
    13  git branch -m main
    14  git tag 'v0.1.0'
    15  
    16  at 2022-02-02T14:19:44-05:00
    17  git branch 'v1.0.0'
    18  git branch 'v2.0.0'
    19  git checkout 'v1.0.0'
    20  cp v1/pkg/pkg.go pkg/pkg.go
    21  git commit -a -m 'pkg: start developing toward v1.0.0'
    22  
    23  at 2022-02-03T10:53:13-05:00
    24  git branch 'v3.0.0-devel'
    25  git checkout 'v3.0.0-devel'
    26  git checkout v0.1.0 pkg/pkg.go
    27  git commit -a -m 'pkg: remove panic'
    28  git tag v4.0.0-beta.1
    29  
    30  git checkout main
    31  
    32  git show-ref --tags --heads
    33  cmp stdout .git-refs
    34  
    35  -- .git-refs --
    36  33ea7ee36f3e3f44f528664b3712c9fa0cef7502 refs/heads/main
    37  09c4d8f6938c7b5eeae46858a72712b8700fa46a refs/heads/v1.0.0
    38  33ea7ee36f3e3f44f528664b3712c9fa0cef7502 refs/heads/v2.0.0
    39  d59622f6e4d77f008819083582fde71ea1921b0c refs/heads/v3.0.0-devel
    40  33ea7ee36f3e3f44f528664b3712c9fa0cef7502 refs/tags/v0.1.0
    41  d59622f6e4d77f008819083582fde71ea1921b0c refs/tags/v4.0.0-beta.1
    42  -- go.mod --
    43  module vcs-test.golang.org/git/semver-branch.git
    44  
    45  go 1.16
    46  -- pkg/pkg.go --
    47  package pkg
    48  -- v1/pkg/pkg.go --
    49  package pkg
    50  
    51  func init() {
    52  	panic("TODO")
    53  }
    54  

View as plain text