4 ms·
`git add -p` opens an editor to stage individual lines/hunks right? If so, would a better workflow not be the editor providing shortcuts to stage/unstage indiv
by ratorx 2y ago
`git add -p` opens an editor to stage individual lines/hunks right?
If so, would a better workflow not be the editor providing shortcuts to stage/unstage individual lines/hunks (which it can indicate in some state column) and a list of files with unstaged changes (to replace the inevitable `git status`)?
You get the same flexibility of crafting commits, directly from the place you’ve edited the files without having intermediate CLI commands. And all the other niceness of the editor (syntax highlighting etc).