lime-green / unison-gitignore Goto Github PK
View Code? Open in Web Editor NEWA gitignore-aware wrapper around Unison
License: MIT License
A gitignore-aware wrapper around Unison
License: MIT License
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
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.
unison-gitignore/src/unison_gitignore/util.py
Lines 56 to 61 in 3ea8e70
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.