Example #1
0
func (sub *Submodule) Reload() error {
	ret := C.git_submodule_reload(sub.ptr)
	if ret < 0 {
		return LastError()
	}
	return nil
}
Example #2
0
func (sub *Submodule) Reload(force bool) error {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	ret := C.git_submodule_reload(sub.ptr, cbool(force))
	if ret < 0 {
		return MakeGitError(ret)
	}
	return nil
}