-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Combining tup and user gitignore entries #476
Comments
I like this idea, it seems like it would help not having to commit changes to .gitignore files that contain a manually entered section just because the Tupfile changes. What part is not working correctly on Windows currently? As far as I can tell it seems to be working the same as other OSes, which is the .gitignore file is ignored if it is completely auto-generated, and it is not ignored if you put manual content in there. Regarding the name Another option is to add parser logic in the Tupfile / Tupfile.lua that allows you to specify extra gitignore entries there. Eg in lua this could be something like:
In a regular Tupfile it could be that the .gitignore command takes a list of entries to add to the generated |
Unfortunately I no longer know what the issue was. But it worked on Linux.
Agreed,
This would be interesting when implemented in addition to this feature. It could be used for programmatically specifying gitignore entries. But I can only imagine this being useful in some edge cases. |
Tup currently only ignores the
.gitignore
file if there is no user content inside. This behavior was added in 627aa56.This approach has the problem of not ignoring auto-generated
.gitignore
files and doesn't work correctly on windows.So my suggestion is to merge a file called
tup.gitignore
(if it exists) with the generated.gitignore
.For example:
(the .gitignore which would normally be generated by Tup)
tup.gitignore (user created)
/foobar
.gitignore (created by merging the gitignore generated by Tup and tup.gitignore)
The text was updated successfully, but these errors were encountered: