]> oss.titaniummirror.com Git - git-utils.git/blobdiff - git-diffall
Improve git-diffall
[git-utils.git] / git-diffall
old mode 100755 (executable)
new mode 100644 (file)
index dd8dd46..990d285
@@ -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