-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GTIndex improvements and GTRepository+Status tweaks #622
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,10 @@ typedef NS_OPTIONS(NSInteger, GTFileStatusFlags) { | |
GTFileStatusDeletedInWorktree = GIT_STATUS_WT_DELETED, | ||
GTFileStatusTypeChangedInWorktree = GIT_STATUS_WT_TYPECHANGE, | ||
GTFileStatusRenamedInWorktree = GIT_STATUS_WT_RENAMED, | ||
GTFileStatusUnreadableInWorktree = GIT_STATUS_WT_UNREADABLE, | ||
|
||
GTFileStatusIgnored = GIT_STATUS_IGNORED, | ||
GTFileStatusConflicted = GIT_STATUS_CONFLICTED | ||
}; | ||
|
||
/// An `NSNumber` wrapped `GTRepositoryStatusOptionsShow` bitmask. | ||
|
@@ -57,8 +59,8 @@ extern NSString *const GTRepositoryStatusOptionsFlagsKey; | |
/// An enum, for use as documented, with the `GTRepositoryStatusOptionsFlagsKey` | ||
/// key. | ||
/// | ||
/// See status.h for documentation of each individual flag. | ||
typedef enum { | ||
/// See status.h for documentation of each individual git_status_opt_t flag. | ||
typedef NS_OPTIONS(NSInteger, GTRepositoryStatusFlags) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, cool. |
||
GTRepositoryStatusFlagsIncludeUntracked = GIT_STATUS_OPT_INCLUDE_UNTRACKED, | ||
GTRepositoryStatusFlagsIncludeIgnored = GIT_STATUS_OPT_INCLUDE_IGNORED, | ||
GTRepositoryStatusFlagsIncludeUnmodified = GIT_STATUS_OPT_INCLUDE_UNMODIFIED, | ||
|
@@ -71,9 +73,11 @@ typedef enum { | |
GTRepositoryStatusFlagsRenamesFromRewrites = GIT_STATUS_OPT_RENAMES_FROM_REWRITES, | ||
GTRepositoryStatusFlagsSortCaseSensitively = GIT_STATUS_OPT_SORT_CASE_SENSITIVELY, | ||
GTRepositoryStatusFlagsSortCaseInsensitively = GIT_STATUS_OPT_SORT_CASE_INSENSITIVELY, | ||
GTRepositoryStatusFlagsNoRefresh = GIT_STATUS_OPT_NO_REFRESH, | ||
GTRepositoryStatusFlagsUpdateIndex = GIT_STATUS_OPT_UPDATE_INDEX, | ||
GTRepositoryStatusFlagsIncludeUnreadable = GIT_STATUS_OPT_INCLUDE_UNREADABLE, | ||
GTRepositoryStatusFlagsIncludeUnreadableAsUntracked = GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKED, | ||
} GTRepositoryStatusFlags; | ||
GTRepositoryStatusFlagsIncludeUnreadableAsUntracked = GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKED | ||
}; | ||
|
||
/// An `NSArray` of `NSStrings`s to limit the status to specific paths inside | ||
/// the repository. The entries in the array represent either single paths or | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_Nullable
is not necessary here : the underlying git_oid is part of the git_index struct.