stephenh / mirror

A tool for real-time, two-way sync for remote (e.g. desktop/laptop) development
Apache License 2.0
391 stars 37 forks source link

Do not respect .gitignore content #46

Closed rleon closed 4 years ago

rleon commented 4 years ago

Hi,

Thanks for the project, it works like a charm over large code repository (~3G).

I wonder how can I disable all ",gitignore" files (main one and in subfolders) and sync all files?

Thanks

ianvkoeppe commented 4 years ago

Hey there,

Extra includes and excludes patterns can be passed when starting the client, and follow the .gitignore format, e.g.:

It’s always worked for me to just use a wildcard...

-i ‘*’

rleon commented 4 years ago

The wildcard is great, I'm trying it now.

Thanks

stephenh commented 4 years ago

@rleon hey, thanks, glad it's working well for you.

it works like a charm over large code repository (~3G)

Whew. :-)

I wonder how can I disable all ",gitignore" files (main one and in subfolders) and sync all files?

I don't have a flag for that currently, just the -i / --includes to override specific lines from .gitignore files. I think a --sync-all or something like that would make sense.

Any interest in adding it? I'm not super-actively working on mirror but could probably add it at some point.

rleon commented 4 years ago

I don't know Java at all if you need my help with the linux kernel, I'm at your disposal :).

Regarding override, it is a little bit problematic, that file includes a lot of lines and there are .gitignore files in subfolders too.

stephenh commented 4 years ago

I don't know Java at all if you need my help with the linux kernel, I'm at your disposal

Hehe, sure; this should be pretty easy, I'll try to find some time this weekend.

rleon commented 4 years ago

I tried @ianvkoeppe suggestion and it worked perfectly.

Thanks a lot.

stephenh commented 4 years ago

Ah nice! I completely missed his comment go by. Thanks Ian! I'll go ahead and add a readme entry about this.