diff options
| author | Carlos Martín Nieto <[email protected]> | 2013-09-12 10:46:20 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2013-09-12 10:46:20 +0200 |
| commit | b5aca803db4cf9adce0a037cc5ccc47c4c045510 (patch) | |
| tree | 0280a0e5148bff28de858393bdfc1e1420d3b799 /tree.go | |
| parent | 00e3df94c7e06ab66fe4618d3252458163e4a404 (diff) | |
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.
Diffstat (limited to 'tree.go')
| -rw-r--r-- | tree.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
