Skip navigation.

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

Cosimo Streppone 15. September 2009, 16:53

Coool!

Charles Schloss 15. September 2009, 19:51

:cool:

walter 13. November 2009, 09:54

:yes: thx

Charles Schloss 23. December 2009, 23:01

:cough: :cough:

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

Download Opera, the fastest and most secure browser
January 2010
M T W T F S S
December 2009February 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