diff options
| author | Ben Navetta <[email protected]> | 2014-08-18 22:58:53 -0400 |
|---|---|---|
| committer | Ben Navetta <[email protected]> | 2014-08-18 22:58:53 -0400 |
| commit | a093e20a8812f2cc26fde6d4bc6ee8c21e782c39 (patch) | |
| tree | 132b64d28c67554e96729080dc731d49057858b3 /repository.go | |
| parent | f954871968ca6df54aab26d6984cc42bb3904ef2 (diff) | |
add status option support
Diffstat (limited to 'repository.go')
| -rw-r--r-- | repository.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/repository.go b/repository.go index 83e1fab..8cc966c 100644 --- a/repository.go +++ b/repository.go @@ -119,26 +119,6 @@ func (v *Repository) Index() (*Index, error) { return newIndexFromC(ptr), nil } -func (v *Repository) StatusList() (*StatusList, error) { - var ptr *C.git_status_list - options := C.git_status_options{} - - runtime.LockOSThread() - defer runtime.UnlockOSThread() - - ret := C.git_status_init_options(&options, C.GIT_STATUS_OPTIONS_VERSION) - if ret < 0 { - return nil, MakeGitError(ret) - } - - ret = C.git_status_list_new(&ptr, v.ptr, &options) - if ret < 0 { - return nil, MakeGitError(ret) - } - - return newStatusListFromC(ptr), nil -} - func (v *Repository) lookupType(id *Oid, t ObjectType) (Object, error) { var ptr *C.git_object |
