Git Product home page Git Product logo

Comments (5)

mroth avatar mroth commented on May 28, 2024

Totally open to the possibility. We'd want to behavior to be persistent on a given machine. Since in the new script, its actually fired by a stub script in each repo, an easier way to do this would be to have the main lib/lolcommit.rb library check for environment variables at runtime to modify it's behavior. I was already thinking of having one like that for the destination directory to store files, so that structure makes sense.

I can hack this up sometime next week, or if you want to take a stab at it, go for it!

from lolcommits.

johanb avatar johanb commented on May 28, 2024

So since 81eb3bf you can do lolcommits --capture --delay 2 you can however not yet delay the automatic commit. I tried to access the Choices hash from inside the do_enable method, this didn't seem to work however. Might need to dive into the Choice gem. Maybe you know a way to fix this @mroth ?

(In order for it to work the hook which get's written to the post-commit file needs to include --delay x instead of just --capture.)

from lolcommits.

mroth avatar mroth commented on May 28, 2024

I've got an idea, will try to implement this weekend.

from lolcommits.

mroth avatar mroth commented on May 28, 2024

okay, I think that should do it, let me know if it works for you.

from lolcommits.

mroth avatar mroth commented on May 28, 2024

closing as fixed in 0.0.2

from lolcommits.

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.