:wq - blog » git http://writequit.org/blog Tu fui, ego eris Mon, 22 Dec 2014 14:54:59 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.5 Annoyance, colored diffs in perforce http://writequit.org/blog/2010/02/01/annoyance-colored-diffs-in-perforce/ http://writequit.org/blog/2010/02/01/annoyance-colored-diffs-in-perforce/#comments Mon, 01 Feb 2010 15:40:09 +0000 http://writequit.org/blog/?p=341 Quick one-off here, let’s begin.

Git has nice colored diffs, like this:

Perforce does not:

A simple script can remedy this:

Here’s the script:

Simply drop it somewhere in your $PATH and use it like so:

p4 diff | p4c.rb

You can find it in my one-offs directory (it’s called p4c.rb). We recently switched from subversion to perforce (definitely not my choice, I pushed for git), and so far it’s awful. I am definitely not a fan. This makes it a little better.

]]>
http://writequit.org/blog/2010/02/01/annoyance-colored-diffs-in-perforce/feed/ 7
NSM-Console moved to git http://writequit.org/blog/2008/10/10/nsm-console-moved-to-git/ http://writequit.org/blog/2008/10/10/nsm-console-moved-to-git/#comments Fri, 10 Oct 2008 23:54:19 +0000 http://writequit.org/blog/?p=223 If you follow the nsm-console development tree, you might be pleased to know that I’ve switched over to git instead of working from the HeX svn repository. You can now check out the files from the NSM-Console github page, as well as download a tarball of the latest source anytime. If you’d like to check out the code to take a look, you can easily clone the repo with:

git clone git://github.com/dakrone/nsm-console.git

I really like git more than subversion, and I’m glad that any nsm-console changes that I check in aren’t going to break the version of nsm-console in Hex.

]]>
http://writequit.org/blog/2008/10/10/nsm-console-moved-to-git/feed/ 0