func (sub *Submodule) AddToIndex(write_index bool) error { ret := C.git_submodule_add_to_index(sub.ptr, cbool(write_index)) if ret < 0 { return LastError() } return nil }
func (sub *Submodule) AddToIndex(write_index bool) error { runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_submodule_add_to_index(sub.ptr, cbool(write_index)) if ret < 0 { return MakeGitError(ret) } return nil }