Subversion diff preview while committing
Tuesday, 15. September 2009, 15:06:00
git commit -v for Subversion, which made me investigate a bit. Unfortunately it didn't seem to support something like that. It merely lists the type of changes to the files affected, but with some trickery and if you happen to use vim, you can achieve the same by simply doing the following:
svn commit --editor-cmd "vim -c '\$' -c'r ! echo && echo 'DIFF:' && echo && svn diff' -c'0'"
or add the following to your ~/.subversion/config file:
editor-cmd=vim -c '\$' -c'r ! echo && echo 'DIFF:' && echo && svn diff' -c'0'
















cstrep # 15. September 2009, 16:53
Chas4 # 15. September 2009, 19:51
bugscout # 13. November 2009, 09:54