Last active
September 21, 2018 17:59
-
-
Save davidwalter0/a4744b453c4975c49e0e835f7d7f8f89 to your computer and use it in GitHub Desktop.
vgo git version run as git vgo-version >> /tmp/vgo.version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
# create an un-versioned version faux tag string with v0.0.0-date-commit format | |
# github.com/davidwalter0/hello v0.0.0-20180519105930-66b6dd4eb1dd | |
vgo-version = "!TOP=$(git rev-parse --show-toplevel); git log -n 1 --abbrev=12 --date=format:'%Y%m%d%H%M%S' --pretty=format:\"${TOP#${GOPATH}/src/} v0.0.0-%cd-%h\";echo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
probably unnecessary with the recent updates to go1.11