Address issue #108 #109

Merged
bnavetta merged 15 commits from git_status into master 2014-09-11 02:16:39 -05:00
1 changed files with 7 additions and 0 deletions
Showing only changes of commit 0513670745 - Show all commits

View File

@ -75,3 +75,10 @@ func (statusList *StatusList) ByIndex(index int) (StatusEntry, error) {
ptr := C.git_status_byindex(statusList.ptr, C.size_t(index))
return statusEntryFromC(ptr), nil
}
func (statusList *StatusList) EntryCount() (int, error) {
if statusList.ptr == nil {
return -1, ErrInvalid
}
return int(C.git_status_list_entrycount(statusList.ptr)), nil
}