Skip to content

Commit da89640

Browse files
committed
Adjusted GTMergeAnalysis type
GTMergeAnalysis is actually NS_OPTIONS and not NS_ENUM. Swift is getting confused at the bitmasks when it's defined as NS_ENUM.
1 parent cfa1089 commit da89640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTRepository+Pull.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
1313

1414
/// An enum describing the result of the merge analysis.
1515
/// See `git_merge_analysis_t`.
16-
typedef NS_ENUM(NSInteger, GTMergeAnalysis) {
16+
typedef NS_OPTIONS(NSInteger, GTMergeAnalysis) {
1717
GTMergeAnalysisNone = GIT_MERGE_ANALYSIS_NONE,
1818
GTMergeAnalysisNormal = GIT_MERGE_ANALYSIS_NORMAL,
1919
GTMergeAnalysisUpToDate = GIT_MERGE_ANALYSIS_UP_TO_DATE,

0 commit comments

Comments
 (0)