My favorites | Sign in
Project Home Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Use Beyond Compare as external
# diff tool for command line GIT.

# 1) Install Beyond Compare
# 2) Copy this script somewhere in your path. /usr/bin will do
# 3) Edit your GIT config file to use this script to diff. You can do it typing:
# git config --global diff.external bcompare_git
# 4) Good to go, now GIT will launch BC for your diffs.

# Seen here: http://stackoverflow.com/questions/255202/how-do-i-view-git-diff-output-with-visual-diff-program

/usr/bin/bcompare "$2" "$5" | cat
exit 0

Change log

r202 by zzzarate on Jul 2, 2009   Diff
Adding some accordingly lame
documentation.
Go to: 
Project members, sign in to write a code review

Older revisions

r200 by zzzarate on Jun 23, 2009   Diff
Now you can use Beyond Compare for
your git diffs as well.
All revisions of this file

File info

Size: 511 bytes, 15 lines
Powered by Google Project Hosting