(glob string)
| 52 | } |
| 53 | |
| 54 | func (v *RevWalk) PushGlob(glob string) error { |
| 55 | runtime.LockOSThread() |
| 56 | defer runtime.UnlockOSThread() |
| 57 | |
| 58 | cstr := C.CString(glob) |
| 59 | defer C.free(unsafe.Pointer(cstr)) |
| 60 | |
| 61 | ecode := C.git_revwalk_push_glob(v.ptr, cstr) |
| 62 | runtime.KeepAlive(v) |
| 63 | if ecode < 0 { |
| 64 | return MakeGitError(ecode) |
| 65 | } |
| 66 | return nil |
| 67 | } |
| 68 | |
| 69 | func (v *RevWalk) PushRange(r string) error { |
| 70 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected