Giter Site home page Giter Site logo

An '--only' / '--include' option about synx HOT 8 OPEN

radex avatar radex commented on July 20, 2024 3
An '--only' / '--include' option

from synx.

Comments (8)

jnross avatar jnross commented on July 20, 2024 4

I've created a branch with this change: jnross@1dc0275

It still needs tests to be written, but I want to make sure I'm on the right track before going further.

from synx.

Mazyod avatar Mazyod commented on July 20, 2024

I vouch for that, because most of the time my use case to synx one directory, which contains the source files. This option would make it less frightening to run synx.

from synx.

ScottRobbins avatar ScottRobbins commented on July 20, 2024

Yeah this would be extremely useful

Not only that, but when you're working on a long term project and want to start using synx, now it reorganizes your project file and makes it impossible to code review, along with causing annoying merge conflicts later from other people when you've moved their files.

from synx.

marklarr avatar marklarr commented on July 20, 2024

I'm thinking about this right now, and I'm at a bit of a mental block. It seems like it would only really make sense to support explicitly --only'ing groups that live under the main group, or are within a tree that also got fully passed in to the --only option. The reason for this is that it's not exactly possible to sync a group without having sync'ed its parents as well, or else the paths just won't make sense.

Does that make sense? What do you guys think?

from synx.

marklarr avatar marklarr commented on July 20, 2024

As for it being scary to run Synx, I'd just recommend backing up everything in Git always before running it :)

from synx.

ScottRobbins avatar ScottRobbins commented on July 20, 2024

It seems like it would only really make sense to support explicitly --only'ing groups that live under the main group, or are within a tree that also got fully passed in to the --only option.

That would have to be the case I believe. Otherwise the file system would provide no organizational benefit (and would probably cause too many name conflicts with the paths and similarly named child groups).

from synx.

beltex avatar beltex commented on July 20, 2024

Hello all!

I know this is a bit of an old ticket now, but any updates? @jnross: any chance of opening a pull request? I tried running your branch, but it didn't seem to quite work for me, I may have been doing something wrong, or was it still WIP?

from synx.

jnross avatar jnross commented on July 20, 2024

My branch was a WIP, I found that that it only worked in certain cases. This one is a little tricky to get right and my need for it has disappeared, so I didn't push further.

from synx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.