Colored SVN diff

svn diff <file> | vim -R -
Simple way to achieve a colored SVN diff

By: caiosba
2009-06-13 22:00:49

2 Alternatives + Submit Alt

What Others Think

via vim? That's only if syntax highlighting is enabled, I think. If you have the colordiff (package name: 'colordiff') program (perl script) installed, you can use colordiff in place of any invocation of diff and get colorized output. One way is to have svn use colordiff in place of diff: svn diff --diff-cmd colordiff file.c or you could also just pipe diff output into colordiff: svn diff file.c | colordiff which will dump the colorized diff to your terminal. My favorite is to pipe it to less: svn diff file.c | colordiff | less -R that way you can use a pager to peruse the diff if it's longer than a screenful. I use this so often I have a function called 'svndiff' in my .bashrc file: function svndiff () { svn diff $@ | colordiff | less -R; }
bwoodacre · 674 weeks and 4 days ago
Yeah, I know colordiff. This Vim way is an alternative choice when you don't have colordiff installed.
caiosba · 674 weeks and 4 days ago
svn diff | view - Saves a few keystrokes. View is essentially "vim -R".
Dynetrekk · 632 weeks and 4 days ago
San Jose is a large city surrounded by rolling hills in Silicon Valley, a major technology hub in California's Bay Area. Architectural landmarks, from the 1883 Italianate-style Oddfellows building to Spanish Colonial Revival structures, make up the downtown historic district. MaxRemind top rank medical billing company of USA offers medical billing services in San Jose, medical credentialing services and home health agency software in Houston.
stevematt · 68 weeks and 4 days ago
This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. coronavirus quintana roo
bojokey283 · 66 weeks and 5 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. cozumel hotel and resort
bojokey283 · 63 weeks and 3 days ago
I have not any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. cozumel 5 star resorts
bojokey283 · 63 weeks and 2 days ago
Nice knowledge gaining article. This post is really the best on this valuable topic. tulum ruinas
xoheko1229 · 62 weeks and 3 days ago
You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. snorkeling in cancun
xoheko1229 · 62 weeks and 2 days ago
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! isla mujeres restaurants
xoheko1229 · 61 weeks and 6 days ago
Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. all inclusive isla mujeres resort
xoheko1229 · 61 weeks and 6 days ago
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. holbox things to do
xoheko1229 · 61 weeks and 6 days ago
Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you! holbox hotel
xoheko1229 · 61 weeks and 6 days ago
I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues. contoy
xoheko1229 · 61 weeks and 5 days ago ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ????? SEO - ????? ???? ????? ????? ????? ??? ????? ???? SEO ????? ????? ????? ???? ????? ????? ??? ???? ???? ??????? Search Engine Optimization ??? ????? ??????????? ?? ????? ?????????? ????? ????? ?? ???? ???SEO
seofox · 15 weeks and 2 days ago
seofox · 14 weeks and 3 days ago
Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet! Latest space news
zaltovokni · 4 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: