gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Stage individual lines / blocks of code from a file

Open call0fcode opened this issue 11 months ago • 1 comments

Version

0.14.4

Operating System

macOS

Distribution Method

dmg (Mac OS - Intel)

Describe the issue

I'd like to be able to stage only the lines / blocks of code I'm interested on to commit and exclude the rest of a modified file.

I'm used to use it on VSCode and it's pretty useful.

How to reproduce (Optional)

If I use the functionality in VSCode, it gets ignored by GitButler and the whole file is staged.

image

Expected behavior (Optional)

To be able to stage and commit independent blocks of modified code.

Relevant log output (Optional)

No response

call0fcode avatar Jan 13 '25 13:01 call0fcode

Thanks a lot for the suggestion!

I also would like this feature to land, there definitely isn't a technical reason not to have it.

Byron avatar Jan 14 '25 08:01 Byron

This can now be done by clicking on the line numbers when committing.

Caleb-T-Owens avatar Oct 02 '25 00:10 Caleb-T-Owens