From 92cdee8f4cda65c0495dd39df51f2d199da17253 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 23 Oct 2018 14:12:19 -0400 Subject: textproto: Have the Mode* values be `const` instead of `var` --- textproto/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textproto/types.go b/textproto/types.go index 20aa3e5..1ff21a8 100644 --- a/textproto/types.go +++ b/textproto/types.go @@ -101,7 +101,7 @@ func ParseIdent(str string) (Ident, error) { // Mode is a file mode as seen by git. type Mode uint32 // 18 bits -var ( +const ( ModeFil = Mode(0100644) // A regular file ModeExe = Mode(0100755) // An executable file ModeSym = Mode(0120000) // A symbolic link -- cgit v1.2.3-2-g168b