(r string)
| 67 | } |
| 68 | |
| 69 | func (v *RevWalk) PushRange(r string) error { |
| 70 | runtime.LockOSThread() |
| 71 | defer runtime.UnlockOSThread() |
| 72 | |
| 73 | cstr := C.CString(r) |
| 74 | defer C.free(unsafe.Pointer(cstr)) |
| 75 | |
| 76 | ecode := C.git_revwalk_push_range(v.ptr, cstr) |
| 77 | runtime.KeepAlive(v) |
| 78 | if ecode < 0 { |
| 79 | return MakeGitError(ecode) |
| 80 | } |
| 81 | return nil |
| 82 | } |
| 83 | |
| 84 | func (v *RevWalk) PushRef(r string) error { |
| 85 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected