...

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

Documentation: cmd/go/testdata/vcstest/git

     1handle git
     2
     3env GIT_AUTHOR_NAME='Bryan C. Mills'
     4env GIT_AUTHOR_EMAIL='bcmills@google.com'
     5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7
     8git init
     9
    10at 2021-08-11T13:52:00-04:00
    11git add cmd
    12git commit -m 'add cmd/issue47650'
    13git branch -m main
    14git tag v0.1.0
    15
    16git add go.mod
    17git commit -m 'add go.mod'
    18
    19git show-ref --tags --heads
    20cmp stdout .git-refs
    21
    22git log --oneline --decorate=short
    23cmp stdout .git-log
    24
    25-- .git-refs --
    2621535ef346c3e79fd09edd75bd4725f06c828e43 refs/heads/main
    274d237df2dbfc8a443af2f5e84be774f08a2aed0c refs/tags/v0.1.0
    28-- .git-log --
    2921535ef (HEAD -> main) add go.mod
    304d237df (tag: v0.1.0) add cmd/issue47650
    31-- go.mod --
    32module vcs-test.golang.org/git/issue47650.git
    33
    34go 1.17
    35-- cmd/issue47650/main.go --
    36package main
    37
    38import "os"
    39
    40func main() {
    41	os.Stdout.WriteString("Hello, world!")
    42}

View as plain text