File: 01-disable-commit-hash-and-date.patch

package info (click to toggle)
micro 2.0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,448 kB
  • sloc: sh: 232; makefile: 72; xml: 24
file content (20 lines) | stat: -rw-r--r-- 622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Disable commit hash and date
 Disabling commit hash and compiled date as they are not needed in the
 Debian package. These are shown when you invoke `micro --version`.
Author: Jongmin Kim
Forwarded: not-needed
Last-Update: 2020-02-12

--- a/cmd/micro/micro.go
+++ b/cmd/micro/micro.go
@@ -94,8 +94,8 @@
 	if *flagVersion {
 		// If -version was passed
 		fmt.Println("Version:", util.Version)
-		fmt.Println("Commit hash:", util.CommitHash)
-		fmt.Println("Compiled on", util.CompileDate)
+		//fmt.Println("Commit hash:", util.CommitHash)
+		//fmt.Println("Compiled on", util.CompileDate)
 		os.Exit(0)
 	}