diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-03-11 17:05:16 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-03-11 17:05:16 +0100 |
| commit | d300110b8582cd44511efc26a7a0ce04d409f8ce (patch) | |
| tree | 58652052be2848d110ff3c894517452577f44a95 /object.go | |
| parent | 755721e68453c5d6de0681789dbe3307744fc9c4 (diff) | |
| parent | 9eae50f29a69fa47cecf3cf4dfb032414cf27a50 (diff) | |
Merge pull request #178 from schani/master
Fixes and improvements
Diffstat (limited to 'object.go')
| -rw-r--r-- | object.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,12 +25,12 @@ type Object interface { } type gitObject struct { - ptr *C.git_object + ptr *C.git_object repo *Repository } -func (t ObjectType) String() (string) { - switch (t) { +func (t ObjectType) String() string { + switch t { case ObjectAny: return "Any" case ObjectBad: @@ -71,7 +71,7 @@ func (o *gitObject) Free() { func allocObject(cobj *C.git_object, repo *Repository) Object { obj := gitObject{ - ptr: cobj, + ptr: cobj, repo: repo, } |
