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

Add an equivalent to git add -u #933

Closed
tmke8 opened this issue Oct 6, 2021 · 5 comments
Closed

Add an equivalent to git add -u #933

tmke8 opened this issue Oct 6, 2021 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@tmke8
Copy link

tmke8 commented Oct 6, 2021

Is your feature request related to a problem? Please describe.
I often want to stage and commit all changes to files that are already tracked by git, but not add new files. With git, this can be done with git add -u or git commit -a. (I might be the only one who does that though, in which case feel free to ignore this.)

Describe the solution you'd like
There is already status_stage_all, so what I would like to have is status_stage_update (or something like that) which I can map, for example, to u.

Describe alternatives you've considered
The alternative is going through all files in the status view and either press down or enter; or first staging everything and then removing some changes.

@extrawurst
Copy link
Owner

the options dialog should solve this. in the options you can hide the untracked files and it will effectively also only stage files visible then

@Revantus
Copy link

@extrawurst When I set Status: Show Untracked to No to hide the untracked files and then Stage All, it still stages the untracked file(s).

For commits with a lot of changed files, you could still hide the untracked files and press enter repeatedly, but the main goal is to stage only updated files in a single pass.

@extrawurst
Copy link
Owner

That’s a bug then actually

@extrawurst extrawurst added the bug Something isn't working label Oct 23, 2021
@extrawurst extrawurst added this to the v0.19 milestone Oct 23, 2021
extrawurst pushed a commit that referenced this issue Oct 23, 2021
@extrawurst
Copy link
Owner

@thomkeh so stage_all command honors the options set for untracked files now.

extrawurst pushed a commit that referenced this issue Oct 23, 2021
@tmke8
Copy link
Author

tmke8 commented Oct 23, 2021

Nice, that works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants