...

Text file src/cmd/go/testdata/vcstest/git/mainonly.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 2019-09-05T14:07:43-04:00
    11git add main.go
    12git commit -a -m 'add main.go'
    13git branch -m master
    14
    15git log --oneline --decorate=short
    16cmp stdout .git-log
    17
    18-- .git-log --
    198a27e8b (HEAD -> master) add main.go
    20-- main.go --
    21package main
    22
    23func main() {}

View as plain text