Giter Club home page Giter Club logo

unison-gitignore's People

Contributors

lime-green avatar noahnu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mikegilchrist

unison-gitignore's Issues

Suggested Enhancement: Allow GTK option

I've tried passing the argument -ui graphic to get the gtk version of unison, but it doesn't work for me. As a work around I've modified my local code, replacing new_cmd = ["unison"] + cmd with new_cmd = ["unison-gtk"] + cmd, but suspect it could be incorporated into the code in a way similar to how unison uses unison-gtk for the GUI, i.e. unison-gitignore-gtk

False positive on detecting profile usage when options are provided before root arguments

I'm pretty new to Unison, so this might be a misunderstaning on my part! If I understand the following section correcly, it seems that unison-gitignore will mistakingly detect profile usage if any option is provided before the main arguments.

if cmd[1].startswith("-"):
# In the case of running using a profile
logger.warning(
"No .gitignore patterns will be added since a unison profile was given"
)
return False

For example:

# Here we call -auto before the root arguments, and .gitignore patterns are not added
% unison-gitignore -auto root1 root2
unison_gitignore :: WARNING  :: No .gitignore patterns will be added since a unison profile was given

# Now we move -auto to after the root arguments, and everything works as expected
% unison-gitignore dir1 dir2 -auto

Again, new to unison, but the usage docs state:

Usage: unison [options]
    or unison root1 root2 [options]
    or unison profilename [options]

So would detecting if cmd[1].startswith("-") even detect profilenameβ€”or is that not the point?


Also thanks for sharing the great tool, it's been incredibly useful to me!

Suggested Enhancement: unison-gitignore version

Instead of using .gitignore, I'd like to have unison ignore any files under git control as listed by the command git ls-files. I started working on this by branching your code, but quickly got over my head.

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.