Skip to content

Commit

Permalink
style: Use short commit hash in version
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 6, 2023
1 parent b2d0fcd commit 466239c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func initConfig() error {
func buildVersion() string {
result := util.GetVersion()
if commit := util.GetCommit(); commit != "" {
result += " (" + commit + ")"
result += " (" + commit[:8] + ")"
}
return result
}

0 comments on commit 466239c

Please sign in to comment.