-
Notifications
You must be signed in to change notification settings - Fork 318
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
FR: Support .ignore
/.jjignore
, a Git Independent way to ignore files.
#3525
Comments
While adjacent, the FYI, I tried (but was unsuccessful) to get Pijul's file to change from A plain |
Note that you don't need to add |
+1
This actually changed slightly. |
I kind of.. did not understand your message here. Why? I've mentioned previously that creator of the |
I haven't seen that remark. I suppose it doesn't matter that all the VCSs would be listed in one file. That's what would be intended anyway. I haven't thought about it as much as the crate author, but when I wrote that about future proofing, I was thinking in terms of a future maintainer that doesn't really know the old tool so wouldn't know that generic |
I see two possible approaches here:
Option 1 is easy but seems like it'll just tend to infuriate users in cases like colocated repos, where different VCS tools have to be taught separately to ignore files. Option 2 seems nicer but really finicky to get right. |
I think the second approach is the right one, as it allows a seamless transition from the Git backend to the future |
SGTM, but does that imply that a .ignore file in jj's store would get reflected with a different filename in a git workspace? And would colocated repos end up with .ignore and .gitignore side-by-side? Also FYI might require some changes in the ignore crate to support more involved inspection/reflection of the ignore specs. |
I don't think so, as for Git it just is a auxiliary file, in the worst case it could get added to the
Probably, that means there should be a repo level config knob to prioritize one of them. Although we should give our |
The docs were stating that with a new config to disable auto-track, you have to edit the ignore file after using Here are some links to Git and Breezy docs for their ignore handling:
Breezy has
I don't know Mercurial, but here's a page on file handling, with Permanently ignoring unwanted files near the bottom. |
I thought a bit more about unifying
The only semantic difference for
I think this assessment is correct, that it only should be one state and the third state is here for broader adoption. I'd still like to remove it at some point when the world gets used to having a clean repository. |
Is your feature request related to a problem? Please describe.
At some point we won't have Git as a base system anymore, which means we'll some way to migrate to a new
.ignore
file. It either could be a custom.jjignore
or.ignore
if it doesn't conflict with other tools you're using.Describe the solution you'd like
Add support for a
.jjignore
/.ignore
file which can be adjacent to the.gitignore
and a way to migrate the.gitignore
to it (should be hopefully just a name change).Describe alternatives you've considered
Support
.gitignore
forever, which also could work, but I'd really like Git to be gone.The text was updated successfully, but these errors were encountered: