()
| 768 | } |
| 769 | |
| 770 | func (r *Repository) StateCleanup() error { |
| 771 | runtime.LockOSThread() |
| 772 | defer runtime.UnlockOSThread() |
| 773 | |
| 774 | cErr := C.git_repository_state_cleanup(r.ptr) |
| 775 | runtime.KeepAlive(r) |
| 776 | if cErr < 0 { |
| 777 | return MakeGitError(cErr) |
| 778 | } |
| 779 | return nil |
| 780 | } |
| 781 | |
| 782 | func (r *Repository) AddGitIgnoreRules(rules string) error { |
| 783 | runtime.LockOSThread() |