Skip to content
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

Add option to populate remoteignore from gitignore? #10

Closed
sacsar opened this issue May 2, 2020 · 3 comments
Closed

Add option to populate remoteignore from gitignore? #10

sacsar opened this issue May 2, 2020 · 3 comments

Comments

@sacsar
Copy link

sacsar commented May 2, 2020

It'd be handy if there was an option on remote-init to copy the contents of .gitignore to .remoteignore. An alternative would be to exclude gitignored files from the regular rsync (or add a setting in .remote to do it) and have an option to include those files in remote-push/remote-pull, as the one place I can think ignore them might be annoying is if you have editor configurations that you don't check in, but do want to keep in sync on both machines.

@shirshanka
Copy link
Collaborator

Yes I think this is indeed useful as a feature.
There are pros and cons of doing this at time of remote-init versus as a "dynamic include" in the .remoteignore.

I think for flexibility, keeping .remoteignore independent of .gitignore but allowing for the opportunity to seed it with .gitignore at remote-init time makes sense.

A deeper dynamic integration would involve needing support for annotations in the .gitignore or the .svnignore for the directionality of the ignore... supports for overrides / exclusions in the .remoteignore... complexity that might be overkill.

@shirshanka shirshanka assigned shirshanka and unassigned shirshanka May 3, 2020
@bzzzzzz
Copy link
Contributor

bzzzzzz commented May 13, 2020

#19 should add simple .gitignore support

@bzzzzzz
Copy link
Contributor

bzzzzzz commented Jun 30, 2020

I'm closing this issue because the requested feature was added and documented. See include_vsc_ignore_patterns option description in the readme file for more details

@bzzzzzz bzzzzzz closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants