diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2017-07-08 16:51:22 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-08 16:51:22 +0200 |
| commit | 08db2e2c167404c5ed9be0fc1c995e41bad479bb (patch) | |
| tree | 4a9c1357f3682d4134318e73ef85aa172cbfbd48 /ignore.go | |
| parent | 29c0b730076fe402c22ea3e3a11a7ed541663637 (diff) | |
| parent | 55a1096141519a1f380d0702671cfe9bf90ec435 (diff) | |
Merge pull request #393 from libgit2/cmn/keepalive-all-the-things
KeepAlive all the things
Diffstat (limited to 'ignore.go')
| -rw-r--r-- | ignore.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -17,6 +17,7 @@ func (v *Repository) AddIgnoreRule(rules string) error { defer runtime.UnlockOSThread() ret := C.git_ignore_add_rule(v.ptr, crules) + runtime.KeepAlive(v) if ret < 0 { return MakeGitError(ret) } @@ -28,6 +29,7 @@ func (v *Repository) ClearInternalIgnoreRules() error { defer runtime.UnlockOSThread() ret := C.git_ignore_clear_internal_rules(v.ptr) + runtime.KeepAlive(v) if ret < 0 { return MakeGitError(ret) } @@ -44,6 +46,7 @@ func (v *Repository) IsPathIgnored(path string) (bool, error) { defer runtime.UnlockOSThread() ret := C.git_ignore_path_is_ignored(&ignored, v.ptr, cpath) + runtime.KeepAlive(v) if ret < 0 { return false, MakeGitError(ret) } |
