give status option flags their own type

This commit is contained in:
Ben Navetta 2014-09-04 10:15:13 -04:00
parent 80997c6fa5
commit 1520978dcd
1 changed files with 17 additions and 15 deletions

View File

@ -94,8 +94,10 @@ func (statusList *StatusList) EntryCount() (int, error) {
return int(C.git_status_list_entrycount(statusList.ptr)), nil return int(C.git_status_list_entrycount(statusList.ptr)), nil
} }
type StatusOpt int
const ( const (
StatusOptIncludeUntracked = C.GIT_STATUS_OPT_INCLUDE_UNTRACKED StatusOptIncludeUntracked StatusOpt = C.GIT_STATUS_OPT_INCLUDE_UNTRACKED
StatusOptIncludeIgnored = C.GIT_STATUS_OPT_INCLUDE_IGNORED StatusOptIncludeIgnored = C.GIT_STATUS_OPT_INCLUDE_IGNORED
StatusOptIncludeUnmodified = C.GIT_STATUS_OPT_INCLUDE_UNMODIFIED StatusOptIncludeUnmodified = C.GIT_STATUS_OPT_INCLUDE_UNMODIFIED
StatusOptExcludeSubmodules = C.GIT_STATUS_OPT_EXCLUDE_SUBMODULES StatusOptExcludeSubmodules = C.GIT_STATUS_OPT_EXCLUDE_SUBMODULES
@ -122,7 +124,7 @@ const (
type StatusOptions struct { type StatusOptions struct {
Version int Version int
Show StatusShow Show StatusShow
Flags int Flags StatusOpt
Pathspec []string Pathspec []string
} }