| 1 |
From: Utkarsh Gupta <[email protected]> |
| 2 |
Date: Wed, 13 Sep 2023 16:16:43 +0800 |
| 3 |
Subject: Disable commit hash and date |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
Last-Update: 2020-02-12 |
| 7 |
|
| 8 |
Disabling commit hash and compiled date as they are not needed in the |
| 9 |
Debian package. These are shown when you invoke `micro --version`. |
| 10 |
--- |
| 11 |
cmd/micro/micro.go | 4 ++-- |
| 12 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 13 |
|
| 14 |
--- a/cmd/micro/micro.go |
| 15 |
+++ b/cmd/micro/micro.go |
| 16 |
@@ -101,8 +101,8 @@ |
| 17 |
if *flagVersion { |
| 18 |
// If -version was passed |
| 19 |
fmt.Println("Version:", util.Version) |
| 20 |
- fmt.Println("Commit hash:", util.CommitHash) |
| 21 |
- fmt.Println("Compiled on", util.CompileDate) |
| 22 |
+ //fmt.Println("Commit hash:", util.CommitHash) |
| 23 |
+ //fmt.Println("Compiled on", util.CompileDate) |
| 24 |
exit(0) |
| 25 |
} |
| 26 |
|