summaryrefslogtreecommitdiff
path: root/revparse.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-10-27 15:12:18 +0100
committerCarlos Martín Nieto <[email protected]>2014-10-28 11:29:31 +0100
commit668aa5dae1690d1a061da728f83b2450485d47f4 (patch)
tree1f8172827cc8306888d6678ffd8ccd7b09e1b4fa /revparse.go
parent9c6db70fc2836b6f5eb56c505f9cc82461b999c3 (diff)
Make the constants have types
While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type.
Diffstat (limited to 'revparse.go')
-rw-r--r--revparse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/revparse.go b/revparse.go
index 9e0070e..308da4c 100644
--- a/revparse.go
+++ b/revparse.go
@@ -16,8 +16,8 @@ type RevparseFlag int
const (
RevparseSingle RevparseFlag = C.GIT_REVPARSE_SINGLE
- RevparseRange = C.GIT_REVPARSE_RANGE
- RevparseMergeBase = C.GIT_REVPARSE_MERGE_BASE
+ RevparseRange RevparseFlag = C.GIT_REVPARSE_RANGE
+ RevparseMergeBase RevparseFlag = C.GIT_REVPARSE_MERGE_BASE
)
type Revspec struct {