Lazygit: Request: add an option to default to staging all when attempting to commit and nothing is staged

Created on 12 Nov 2020  路  4Comments  路  Source: jesseduffield/lazygit

Is your feature request related to a problem? Please describe.
the most common flow I have (and, I think, a lot of people have this flow) is to do some work, commit it all, lather-rinse-repeat. So 'c' is smart in that it can ask me if I want to stage all when none are staged, but in the spirit of being a lazy-ass dev, I'd really like to have a config point where I could say "yes, I'm super-lazy, so if I 'c' without staging anything, assume I mean _everything_ and stage the lot"

Describe the solution you'd like
a config option to stage all when committing with nothing staged, eg:

gui:
    skipNoStagedFilesWarning: true

Describe alternatives you've considered
pressing 'a' and then 'c', forever, but this is twice as much work as I want to do. Did I mention how lazy I am?

Additional context
I'm so lazy, this will save me so much time and effort 馃槢

enhancement good first issue

Most helpful comment

I see what you did there

All 4 comments

This is a very reasonable request. I'm going to chuck a good-first-issue label on this in case somebody (perhaps you!) wants to pick it up cos it should be fairly straightforward to do. Happy to give pointers

I actually did consider forking and adding -- my go-fu is minimal, but perhaps I'll give it a _go_ tonight.

I see what you did there

This is now implemented on master, thanks @fluffynuts !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cbeley picture cbeley  路  6Comments

kristijanhusak picture kristijanhusak  路  6Comments

letarg0 picture letarg0  路  4Comments

tupaschoal picture tupaschoal  路  6Comments

5minpause picture 5minpause  路  6Comments