Keyboard shortcuts to stage/unstage changes
With gitg
's "commit view" i can select individual files that have differences and stage or unstage them with ctrl-S or ctrl-U.
However, when viewing a file with multiple hunks of differences, i'd like to be able to stage or unstage a hunk at a time, or even a line at a time.
See for example the behavior of git gui
, which lets the user do this kind of fine-grained staging.