summaryrefslogtreecommitdiff
path: root/credentials.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-10-28 11:59:04 +0100
committerCarlos Martín Nieto <[email protected]>2014-10-28 11:59:04 +0100
commitccfce74e182a5c588e20f6ed701e0a67e820de8e (patch)
tree1f8172827cc8306888d6678ffd8ccd7b09e1b4fa /credentials.go
parent9c6db70fc2836b6f5eb56c505f9cc82461b999c3 (diff)
parent668aa5dae1690d1a061da728f83b2450485d47f4 (diff)
Merge pull request #129 from libgit2/cmn/const-type
Make the constants have types
Diffstat (limited to 'credentials.go')
-rw-r--r--credentials.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/credentials.go b/credentials.go
index c5ed055..b04bf98 100644
--- a/credentials.go
+++ b/credentials.go
@@ -11,9 +11,9 @@ type CredType uint
const (
CredTypeUserpassPlaintext CredType = C.GIT_CREDTYPE_USERPASS_PLAINTEXT
- CredTypeSshKey = C.GIT_CREDTYPE_SSH_KEY
- CredTypeSshCustom = C.GIT_CREDTYPE_SSH_CUSTOM
- CredTypeDefault = C.GIT_CREDTYPE_DEFAULT
+ CredTypeSshKey CredType = C.GIT_CREDTYPE_SSH_KEY
+ CredTypeSshCustom CredType = C.GIT_CREDTYPE_SSH_CUSTOM
+ CredTypeDefault CredType = C.GIT_CREDTYPE_DEFAULT
)
type Cred struct {