From d5890f58e884174f1cee13d5a616e818ba2f5049 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Mon, 31 Aug 2015 20:22:17 +0200 Subject: 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. --- index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.go') 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) } -- cgit v1.2.3