Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion 4 generate/input/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -949,9 +949,11 @@
"git_ignore_path_is_ignored": {
"args": {
"ignored": {
"shouldAlloc": true,
"isReturn": true
}
}
},
"isAsync": true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow it's pretty cool that this is all it took.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 👶

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where'd this baby come from!? Now I gotta take care of it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        🎉                                   🎉
    🎉 yeah, it's pretty cool        🎉
       🎉                 🎉
     🎉;     🎉
🐧

}
}
},
Expand Down
13 changes: 11 additions & 2 deletions 13 test/tests/ignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ describe("Ignore", function() {
});

it("can determine if a path is ignored", function() {
assert.equal(Ignore.pathIsIgnored(this.repository, ".git"), true);
assert.equal(Ignore.pathIsIgnored(this.repository, "LICENSE"), false);
function expectIgnoreState(repo, fileName, expected) {
return Ignore.pathIsIgnored(repo, fileName)
.then(function(ignored) {
assert.equal(ignored, expected);
});
}

return Promise.all([
expectIgnoreState(this.repository, ".git", true),
expectIgnoreState(this.repository, "LICENSE", false)
]);
});
});
Morty Proxy This is a proxified and sanitized view of the page, visit original site.