From 466239cef5f63a335f1b92ba613a820b30a90dca Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 5 Oct 2023 23:16:38 -0500 Subject: [PATCH] style: Use short commit hash in version --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 2d389e39..de8cb578 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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 }