-
Notifications
You must be signed in to change notification settings - Fork 798
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
feat: do not update/commit files in .gitignore #230
Conversation
Looks good, though tests are failing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Side note: Looks like lib/gitignore.js
could be a separate npm package :)
lib/gitignore.js
Outdated
@@ -0,0 +1,21 @@ | |||
const Dotignore = require('@bcoe/dotignore') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Node 4 support, this file needs 'use strict'
at the top. This fixes the failing tests for me locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nexdrew I guess I'll need to spin up a Windows VM ... grumble.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nexdrew smart 👍
My attempt to fix the Windows build failed. Anyone else have ideas? |
@bcoe I was able to spin up a Windows VM, and it looks like my suggestion of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bcoe This should be ready to go, assuming you're still ok using the dotignore
package.
@bcoe just wanted to let you know that I raised a bug on dotgitignore. It means that lines that are comments are included in the matches. So for example someone puts their directory name is as a comment the |
@Aigeec Any update on when that will be fixed I just bump into that situation where my package.json and package-lock.json where ignored because some weird issue with https://github.com/bcoe/dotgitignore where it does match some ignored lines withe the full path of the package.json. For example my package.json is at: and in my .gitignore I have the following # ignore user files
.user* because the path contains |
I've open a PR bcoe/dotgitignore#3 on https://github.com/bcoe/dotgitignore to resolve the issue but I believe @bcoe is triaging it at the moment. |
I've bumped into this issue a few times, and noticed a similar conversation in #213.
How does this solution look? @nexdrew, @satazor, @arobson?