From b5aca803db4cf9adce0a037cc5ccc47c4c045510 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Thu, 12 Sep 2013 10:46:20 +0200 Subject: Give each const group a type This allows us to restrict which constants the compiler will allow through, and makes the sorting in the documentation better. --- tree.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tree.go') diff --git a/tree.go b/tree.go index d1a7c59..3abd31c 100644 --- a/tree.go +++ b/tree.go @@ -13,8 +13,9 @@ import ( "unsafe" ) +type Filemode int const ( - FilemodeNew = C.GIT_FILEMODE_NEW + FilemodeNew Filemode = C.GIT_FILEMODE_NEW FilemodeTree = C.GIT_FILEMODE_TREE FilemodeBlob = C.GIT_FILEMODE_BLOB FilemodeBlobExecutable = C.GIT_FILEMODE_BLOB_EXECUTABLE -- cgit v1.2.3