Created
August 24, 2016 20:43
-
-
Save leejo/7f1c87c37194a2b964218a05de8e79f2 to your computer and use it in GitHub Desktop.
split commit diff in commit message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if match( bufname(1),'COMMIT_EDITMSG' ) != -1 | |
:silent !git diff --cached >/tmp/commit.diff | |
:silent :vsplit /tmp/commit.diff | |
:wincmd l | |
:wincmd H | |
:set spell | |
:set ft=gitcommit | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment