summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-08-31 20:22:17 +0200
committerCarlos Martín Nieto <[email protected]>2015-08-31 20:22:17 +0200
commitd5890f58e884174f1cee13d5a616e818ba2f5049 (patch)
treeca7877dbc9a0290550525022535d9b98b4101c15 /index.go
parent876ddd17eba886c8d1cc10d34a8130dd147d63da (diff)
Run go fmt
As it seems to be something that many people can't get over, reformat all the files; as we're breaking things, whoever depended on 'next' will have to take many changes into account anyway, so let's include this to reduce the noise of incoming patches.
Diffstat (limited to 'index.go')
-rw-r--r--index.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.go b/index.go
index 0174dc1..f4c0c1e 100644
--- a/index.go
+++ b/index.go
@@ -51,8 +51,8 @@ func newIndexEntryFromC(entry *C.git_index_entry) *IndexEntry {
return nil
}
return &IndexEntry{
- IndexTime { int32(entry.ctime.seconds), uint32(entry.ctime.nanoseconds) },
- IndexTime { int32(entry.mtime.seconds), uint32(entry.mtime.nanoseconds) },
+ IndexTime{int32(entry.ctime.seconds), uint32(entry.ctime.nanoseconds)},
+ IndexTime{int32(entry.mtime.seconds), uint32(entry.mtime.nanoseconds)},
Filemode(entry.mode),
uint32(entry.uid),
uint32(entry.gid),
@@ -280,7 +280,7 @@ func (v *Index) ReadTree(tree *Tree) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
- ret := C.git_index_read_tree(v.ptr, tree.cast_ptr);
+ ret := C.git_index_read_tree(v.ptr, tree.cast_ptr)
if ret < 0 {
return MakeGitError(ret)
}