Skip navigation.

Sign up | Lost password? | Help

Ramblings

a test …

Subversion diff preview while committing

, ,

A colleague asked if there was something similar to Git's 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'

Stockholm-site stealing from my computer

Comments

cstrep 15. September 2009, 16:53

Coool!

Chas4 15. September 2009, 19:51

:cool:

bugscout 13. November 2009, 09:54

:yes: thx

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31