(r string)
| 137 | } |
| 138 | |
| 139 | func (v *RevWalk) HideRef(r string) error { |
| 140 | runtime.LockOSThread() |
| 141 | defer runtime.UnlockOSThread() |
| 142 | |
| 143 | cstr := C.CString(r) |
| 144 | defer C.free(unsafe.Pointer(cstr)) |
| 145 | |
| 146 | ecode := C.git_revwalk_hide_ref(v.ptr, cstr) |
| 147 | runtime.KeepAlive(v) |
| 148 | if ecode < 0 { |
| 149 | return MakeGitError(ecode) |
| 150 | } |
| 151 | return nil |
| 152 | } |
| 153 | |
| 154 | func (v *RevWalk) HideHead() (err error) { |
| 155 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected