DEV Community

Discussion on: Self Code Review with Git Add Patch

Collapse
 
apiarian profile image
Aleksandr Pasechnik

The :Gdiff command in tpope/vim-fugitive is really handy for this too (see also vimcast 32. I've seen magit for emacs do similar things, too. Really useful for making sure you don't put in any unnecessary changes into a commit after a furious bout of writing. And for splitting an otherwise-too-big set of changes across logical commits.