mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
version with tag
This commit is contained in:
parent
c6aee678c0
commit
fbadbdd771
3 changed files with 14 additions and 13 deletions
14
main.go
14
main.go
|
@ -12,9 +12,15 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
startTime time.Time
|
||||
debugging bool
|
||||
Rev string
|
||||
startTime time.Time
|
||||
debugging bool
|
||||
|
||||
// Rev - Git Revision
|
||||
Rev string
|
||||
|
||||
// Version - Version number
|
||||
Version = "unversioned"
|
||||
|
||||
builddate string
|
||||
debuggingPointer = flag.Bool("debug", false, "a boolean")
|
||||
versionFlag = flag.Bool("v", false, "Print the current version")
|
||||
|
@ -67,7 +73,7 @@ func main() {
|
|||
devLog("\n\n\n\n\n\n\n\n\n\n")
|
||||
flag.Parse()
|
||||
if *versionFlag {
|
||||
fmt.Printf("rev=%s, build date=%s", Rev, builddate)
|
||||
fmt.Printf("rev=%s, build date=%s, version=%s", Rev, builddate, Version)
|
||||
os.Exit(0)
|
||||
}
|
||||
verifyInGitRepo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue