Skip to content
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
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 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

Copy link
Copy Markdown

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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

💥 👶

Copy link
Copy Markdown

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
Copy Markdown
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 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)
]);
});
});