Skip to content
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

Fixed erroneous shouldIgnoreFile return value #543

Merged
merged 1 commit into from
Jan 27, 2016

Conversation

onecrayon
Copy link
Contributor

Per the git_status_should_ignore docs (emphasis mine):

ignored: Boolean returning 0 if the file is not ignored, 1 if it is

However, the current implementation was returning YES ("the file should be ignored") if the ignore state was 0 ("the file should not be ignored").

Also tweaked the documentation comment to accurately describe the fileURL parameter; I tested and both an absolute path derived from an NSURL (currently in use) and a string path relative to the repository root work fine, so I didn't see any reason to change the method to match the documentation comment instead.

…comment to reflect usage of NSURL instead of NSString
@joshaber
Copy link
Member

Ha, nice catch 👍

joshaber added a commit that referenced this pull request Jan 27, 2016
Fixed erroneous shouldIgnoreFile return value
@joshaber joshaber merged commit 17e8896 into libgit2:master Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants