Skip to content

Commit 17e8896

Browse files
committed
Merge pull request #543 from onecrayon/master
Fixed erroneous shouldIgnoreFile return value
2 parents c574002 + 4ee75c4 commit 17e8896

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ObjectiveGit/GTRepository+Status.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ extern NSString *const GTRepositoryStatusOptionsPathSpecArrayKey;
126126

127127
/// Tests the ignore rules to see if the file should be considered as ignored.
128128
///
129-
/// fileURL - A string path relative to the working copy. Must not be nil.
129+
/// fileURL - A local file URL for a file in the repository. Must not be nil.
130130
/// success - If not NULL, will be set to indicate success or fail.
131131
/// error - If not nil, set to any error that occurs.
132132
///

ObjectiveGit/GTRepository+Status.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ - (BOOL)shouldFileBeIgnored:(NSURL *)fileURL success:(BOOL *)success error:(NSEr
122122
}
123123

124124
if (success != NULL) *success = YES;
125-
return (ignoreState == 0 ? YES : NO);
125+
return (ignoreState == 1 ? YES : NO);
126126
}
127127

128128
@end

0 commit comments

Comments
 (0)