Commits

Anton Shestakov committed e54f8d1

Use vim as an editor (the hack), but open diff on a side of commit message (the goodie).

  • Participants
  • Parent commits 51e6cdf

Comments (0)

Files changed (1)

     MD5=$(which md5 2>/dev/null)
 [ -x "${MD5}" ] && CHECKSUM=`${MD5} "$HGTMP/msg"`
 if [ -s "$HGTMP/diff" ]; then
-    $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $?
+    vim "+e $HGTMP/diff" '+set buftype=help filetype=diff' "+vsplit $HGTMP/msg" || exit $?
 else
     $EDITOR "$HGTMP/msg" || exit $?
 fi