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

     1  handle git
     2  
     3  env GIT_AUTHOR_NAME='Russ Cox'
     4  env GIT_AUTHOR_EMAIL='rsc@golang.org'
     5  env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6  env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7  
     8  git init
     9  
    10  at 2018-04-17T15:43:22-04:00
    11  unquote ''
    12  cp stdout README
    13  git add README
    14  git commit -a -m 'empty README'
    15  git branch -m master
    16  git tag v1.2.3
    17  
    18  at 2018-04-17T15:45:48-04:00
    19  git branch v2
    20  git checkout v2
    21  echo 'v2'
    22  cp stdout v2
    23  git add v2
    24  git commit -a -m 'v2'
    25  git tag v2.3
    26  git tag v2.0.1
    27  git branch v2.3.4
    28  
    29  at 2018-04-17T16:00:19-04:00
    30  echo 'intermediate'
    31  cp stdout foo.txt
    32  git add foo.txt
    33  git commit -a -m 'intermediate'
    34  
    35  at 2018-04-17T16:00:32-04:00
    36  echo 'another'
    37  cp stdout another.txt
    38  git add another.txt
    39  git commit -a -m 'another'
    40  git tag v2.0.2
    41  
    42  at 2018-04-17T16:16:52-04:00
    43  git checkout master
    44  git branch v3
    45  git checkout v3
    46  mkdir v3/sub/dir
    47  echo 'v3/sub/dir/file'
    48  cp stdout v3/sub/dir/file.txt
    49  git add v3
    50  git commit -a -m 'add v3/sub/dir/file.txt'
    51  
    52  at 2018-04-17T22:23:00-04:00
    53  git checkout master
    54  git tag -a v1.2.4-annotated -m 'v1.2.4-annotated'
    55  
    56  git show-ref --tags --heads
    57  cmp stdout .git-refs
    58  
    59  -- .git-refs --
    60  ede458df7cd0fdca520df19a33158086a8a68e81 refs/heads/master
    61  9d02800338b8a55be062c838d1f02e0c5780b9eb refs/heads/v2
    62  76a00fb249b7f93091bc2c89a789dab1fc1bc26f refs/heads/v2.3.4
    63  a8205f853c297ad2c3c502ba9a355b35b7dd3ca5 refs/heads/v3
    64  ede458df7cd0fdca520df19a33158086a8a68e81 refs/tags/v1.2.3
    65  b004e48a345a86ed7a2fb7debfa7e0b2f9b0dd91 refs/tags/v1.2.4-annotated
    66  76a00fb249b7f93091bc2c89a789dab1fc1bc26f refs/tags/v2.0.1
    67  9d02800338b8a55be062c838d1f02e0c5780b9eb refs/tags/v2.0.2
    68  76a00fb249b7f93091bc2c89a789dab1fc1bc26f refs/tags/v2.3
    69  

View as plain text