Paged, colored svn diff

svn diff $* | colordiff | less -r
I put this in a shell script called "svndiff", as it provides a handy decorated "svn diff" output that is colored (which you can't see here) and paged. The -r is required so less doesn't mangle the color codes.
Sample Output
Index: foo/screen.cpp
--- foo/screen.cpp      (revision 5293)
+++ foo/screen.cpp      (working copy)
@@ -907,6 +921,10 @@
 void SetScreenSize(unsigned int width, unsigned int height)
+   if (width >= 132)
+      termWidth = screenWidth = 132;
    screenHeight = height;
    gs_bScreenSizeChanged = true;

By: introp
2009-02-18 16:19:08

What Others Think

Not surprisingly, colordiff (which is a perl script) is packaged under debian/ubuntu (and likely the same in other linux distributions) as the package 'colordiff'. Also, I use less in my similar version of svndiff() with the -S option so as to allow long lines to extend off the screen rather than being wrapped. Cheers.
bwoodacre · 670 weeks and 4 days ago
On RHEL, cdiff is the command
unixmonkey3371 · 665 weeks and 3 days ago
It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! l arginine benefits
KayGasaway · 16 weeks and 4 days ago
It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. Chandigarh Escort Service
KayGasaway · 16 weeks and 4 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. ????
KayGasaway · 16 weeks ago
Thanks for your insight for your fantastic posting. I’m exhilarated I have taken the time to see this. It is not enough; I will visit your site every day. ???????
KayGasaway · 15 weeks and 3 days ago
I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight. ?????
KayGasaway · 15 weeks ago
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.">walmart onewire
KayGasaway · 14 weeks and 3 days ago
ufabet666, one football betting website, complete all bets, easy to play, get real money, the UFABET365 website is the hottest in this hour Because our system doesn't have to download the app, it doesn't have to be difficult to copy the code into the app. Apply for a football betting website Best online, stable web, open for more than many years, more than 1000 members (7x24hr) ???????????? Ufabet
KayGasaway · 13 weeks and 5 days ago
i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. ?????
KayGasaway · 13 weeks and 3 days ago
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. free viagra samples with free shipping
KayGasaway · 13 weeks and 3 days ago
I learn some new stuff from it too, thanks for sharing your information. click here to visit the website
KayGasaway · 13 weeks and 2 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. ??
KayGasaway · 13 weeks and 2 days ago
We are truly thankful for your blog entry. You will discover a great deal of methodologies in the wake of going to your post. I was precisely scanning for. A debt of gratitude is in order for such post and please keep it up.  ??????
jackson2321 · 13 weeks ago
You've completed in excellent work. t suggest to my frtends ind personilly wtll certitnly dtgtt. t'm conftdent they'll be gitned from thts webstte. ?????? ??
jackson2321 · 13 weeks ago
I truly value this superb post that you have accommodated us. I guarantee this would be helpful for a large portion of the general population. Read More Here
jackson2321 · 12 weeks and 6 days ago
You guardians do an astounding web diary, and have some unfathomable substance. Continue doing extraordinary. ??????
jackson2321 · 12 weeks and 5 days ago
hey are some of the most professional people I have ever worked with. I hired">web design surrey to create a one-of-a-kind website for my new company. I gave them my parameters and, within a few days, the infrastructure was ready to go. The process from start to finish was extremely easy.
jackson2321 · 12 weeks ago
I truly value this superb post that you have accommodated us. I guarantee this would be helpful for a large portion of the general population. Agen 88 slot
jackson2321 · 11 weeks and 6 days ago
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. Saddle stool
jackson2321 · 11 weeks and 6 days ago
I think this is definitely an amazing project here. So much good will be coming from this project. The ideas and the work behind this will pay off so much. toowoomba shipping containers
jackson2321 · 11 weeks and 4 days ago
An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers.
JaydenShaw · 11 weeks and 3 days ago
It is included in my habit that I often visit blogs in my free time, so after landing on your blog. I have thoroughly impressed with it and decided to take out some precious time to visit it again and again. Thanks. currant news
JaydenShaw · 11 weeks and 1 day ago
seofox · 9 weeks and 1 day ago
Thankyou for sharing the data which is beneficial for me and others likewise to see. ?????
jackson2321 · 8 weeks and 4 days ago
Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know. slot online
jackson2321 · 8 weeks and 3 days ago
This is my first time i visit here. I found such a substantial number of interesting stuff in your blog especially its examination. Really its inconceivable article. Keep it up. Digital Edge Academy
jackson2321 · 8 weeks and 3 days ago
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. sexybaccarat
jackson2321 · 8 weeks ago
I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight. Nieuws Vandaag
jackson2321 · 7 weeks and 5 days ago
Nothing compares to Weber using Genesis sort of grills. That is certainly the type gas grills which have been that will always make sure that they deliver a high performance part of down interval voyance gratuite
jackson2321 · 5 weeks and 2 days ago
This blog was extremely helpful. I really appreciate your kindness in sharing this with me and everyone else! ????????????????????
jackson2321 · 5 weeks ago
This article is an engaging abundance of enlightening information that is intriguing and elegantly composed. I praise your diligent work on this and thank you for this data. You have what it takes to get consideration.  home health care
jackson2321 · 5 weeks ago
For a long time me & my friend were searching for informative blogs, but now I am on the right place guys, you have made a room in my heart! ??????????????
jackson2321 · 4 weeks and 6 days ago
Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. wedding makeup
jackson2321 · 4 weeks and 3 days ago
Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks Motorcycle Dash Cam
jackson2321 · 4 weeks and 2 days 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: