]> oss.titaniummirror.com Git - git-utils.git/blobdiff - git-diffall
git-diffall gets execute permissions
[git-utils.git] / git-diffall
index dd8dd46fcb856b5d128050b63aaf625bf15cab84..990d28537b858ba773f068242c747c67a53c2c09 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
+# Thanks to Thomas Rast
+# http://thread.gmane.org/gmane.comp.version-control.git/124807
 
+SUBDIRECTORY_OK=1
 . "$(git --exec-path)/git-sh-setup"
 cd_to_toplevel # for the tar below
 
@@ -35,4 +38,9 @@ done < "$tmp"/filelist
 cd "$tmp"
 #meld a b
 #diff -ur a b
-kdiff3 a b
+tool="$(git-config diff.tool)"
+if [ -n "$tool" ]; then
+  "$tool" a b
+else
+  diff -urN a b
+fi