(r string)
| 82 | } |
| 83 | |
| 84 | func (v *RevWalk) PushRef(r string) error { |
| 85 | runtime.LockOSThread() |
| 86 | defer runtime.UnlockOSThread() |
| 87 | |
| 88 | cstr := C.CString(r) |
| 89 | defer C.free(unsafe.Pointer(cstr)) |
| 90 | |
| 91 | ecode := C.git_revwalk_push_ref(v.ptr, cstr) |
| 92 | runtime.KeepAlive(v) |
| 93 | if ecode < 0 { |
| 94 | return MakeGitError(ecode) |
| 95 | } |
| 96 | return nil |
| 97 | } |
| 98 | |
| 99 | func (v *RevWalk) PushHead() (err error) { |
| 100 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected