Replies: 1 comment
-
There's no way to do that from within lazygit. And I don't really see the point: the purpose of the staging area is to select what you want to commit, so if you want to commit a single file, stage only that file. Using range select would only make sense if we made a separate dedicated command for it ("commit selected files"), because in the normal case we want to disregard the selection and commit what is staged. But I'm against adding such a command because it adds unnecessary complexity for too little benefit. If you absolutely want this feature, you can approximate it easily with a custom command (but only for single files, we don't expose a range selection to custom commands yet). |
Beta Was this translation helpful? Give feedback.
-
How to commit a single file if we have multiple files staged?
Range select doesn't seem to work for that. I know that with
git commit
I can accomplish that but from lazygit is this possible?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions