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.
This commit is contained in:
parent
876ddd17eb
commit
d5890f58e8
2
index.go
2
index.go
|
@ -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)
|
||||
}
|
||||
|
|
4
odb.go
4
odb.go
|
@ -8,10 +8,10 @@ extern void _go_git_odb_backend_free(git_odb_backend *backend);
|
|||
*/
|
||||
import "C"
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"runtime"
|
||||
"unsafe"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Odb struct {
|
||||
|
@ -130,7 +130,7 @@ func (v *Odb) ForEach(callback OdbForEachCallback) error {
|
|||
defer pointerHandles.Untrack(handle)
|
||||
|
||||
ret := C._go_git_odb_foreach(v.ptr, handle)
|
||||
fmt.Println("ret %v", ret);
|
||||
fmt.Println("ret %v", ret)
|
||||
if ret == C.GIT_EUSER {
|
||||
return data.err
|
||||
} else if ret < 0 {
|
||||
|
|
|
@ -588,7 +588,7 @@ func (o *Remote) RefspecCount() uint {
|
|||
func populateFetchOptions(options *C.git_fetch_options, opts *FetchOptions) {
|
||||
C.git_fetch_init_options(options, C.GIT_FETCH_OPTIONS_VERSION)
|
||||
if opts == nil {
|
||||
return;
|
||||
return
|
||||
}
|
||||
populateRemoteCallbacks(&options.callbacks, &opts.RemoteCallbacks)
|
||||
options.prune = C.git_fetch_prune_t(opts.Prune)
|
||||
|
@ -624,7 +624,7 @@ func (o *Remote) Fetch(refspecs []string, opts *FetchOptions, msg string) error
|
|||
defer freeStrarray(&crefspecs)
|
||||
|
||||
var coptions C.git_fetch_options
|
||||
populateFetchOptions(&coptions, opts);
|
||||
populateFetchOptions(&coptions, opts)
|
||||
defer untrackCalbacksPayload(&coptions.callbacks)
|
||||
|
||||
runtime.LockOSThread()
|
||||
|
@ -646,7 +646,7 @@ func (o *Remote) ConnectPush(callbacks *RemoteCallbacks) error {
|
|||
}
|
||||
|
||||
func (o *Remote) Connect(direction ConnectDirection, callbacks *RemoteCallbacks) error {
|
||||
var ccallbacks C.git_remote_callbacks;
|
||||
var ccallbacks C.git_remote_callbacks
|
||||
populateRemoteCallbacks(&ccallbacks, callbacks)
|
||||
|
||||
runtime.LockOSThread()
|
||||
|
@ -729,7 +729,7 @@ func (o *Remote) PruneRefs() bool {
|
|||
}
|
||||
|
||||
func (o *Remote) Prune(callbacks *RemoteCallbacks) error {
|
||||
var ccallbacks C.git_remote_callbacks;
|
||||
var ccallbacks C.git_remote_callbacks
|
||||
populateRemoteCallbacks(&ccallbacks, callbacks)
|
||||
|
||||
runtime.LockOSThread()
|
||||
|
|
Loading…
Reference in New Issue