Giter Site home page Giter Site logo

`dura checkout` command about dura HOT 6 OPEN

tkellogg avatar tkellogg commented on August 24, 2024 3
`dura checkout` command

from dura.

Comments (6)

drupol avatar drupol commented on August 24, 2024 1

I really like the idea !

from dura.

tkellogg avatar tkellogg commented on August 24, 2024 1

I see. I suggest another command that resolves a commit by these same time-based rules, so you could do git log $(dura resolve 4h). Basically a dry run version of this.

from dura.

tkellogg avatar tkellogg commented on August 24, 2024 1

I'd rather wait to build lots of sugar until we get a better feel for how people will use dura. I'm in favor of the the checkout & reset commands because they consolidate a fairly long list of commands that many Git users can't do off hand.

from dura.

tkellogg avatar tkellogg commented on August 24, 2024

This makes sense, and I like your proposal. If I dura checkout 4h immediately followed by dura checkout 3h, I get mostly the same result as if I had done dura checkout 3h to begin with. Seems intuitive.

Is checkout the right name though? I think of it as a reset. What do you think?

from dura.

JakeStanger avatar JakeStanger commented on August 24, 2024

I'm thinking checkout quite literally just checks out the commit/branch (perhaps in a detached state if it's a commit, I can't remember how Git works...) and doesn't affect your main branch at all. There would be a second command that builds on it called restore or reset which actually affects the main branch.

from dura.

drupol avatar drupol commented on August 24, 2024

We could also imagine having stuff like dura diff 4h etc etc...

from dura.

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.