local file=$1
./ifodump -f "${file}.bak" > "${file}.bak.dmp"
./ifodump -f "${file}" > "${file}.dmp"
- diff -u "${file}.bak.dmp" "${file}.dmp" | sed -e 1d -e 2d > "${file}.diff"
+ vapier-diff "${file}.bak.dmp" "${file}.dmp" | sed -e 1d -e 2d > "${file}.diff"
local out=$(
grep '^[+-]' "${file}.diff" | \
grep -v \
--- /dev/null
+#!/bin/sh
+# Since `diff` doesn't offer a ~/.config file, wrap it.
+# Color palette kept in sync with ~/.gitconfig.
+exec diff \
+ --color \
+ --palette="ad=1;32:de=1;31:hd=35:ln=1;33" \
+ -Nup \
+ "$@"
export CROSTOOLS_SKIP_SYNC="true"
export CROSTOOLS_GSUTIL="gsutil"
+export P4DIFF="vapier-diff"
+export G4MULTIDIFF="0"
export P4DIFFOPTS="-du"
export ANDROID_USE_AMAKE="true"
### This will override the compile-time default, which is to use
### Subversion's internal diff implementation.
# diff-cmd = diff_program (diff, gdiff, etc.)
-diff-cmd = /home/vapier/.subversion/diff
+diff-cmd = vapier-diff
### Set diff3-cmd to the absolute path of your 'diff3' program.
### This will override the compile-time default, which is to use
### Subversion's internal diff3 implementation.
+++ /dev/null
-#!/bin/sh
-exec diff -Nurp "$@"