X Tutup
The Wayback Machine - https://web.archive.org/web/20201118061744/https://github.com/jesseduffield/lazygit/issues/1079
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fluffynuts opened this issue Nov 12, 2020 · 3 comments

Comments

@fluffynuts
Copy link

@fluffynuts fluffynuts commented Nov 12, 2020

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 😛

@jesseduffield
Copy link
Owner

@jesseduffield jesseduffield commented Nov 12, 2020

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

@fluffynuts
Copy link
Author

@fluffynuts fluffynuts commented Nov 12, 2020

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

@jesseduffield
Copy link
Owner

@jesseduffield jesseduffield commented Nov 12, 2020

I see what you did there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup