#!/bin/sh

# Git will search $PATH for this file, when invoked by "git dsf ...".

f() {
    [ -z "$GIT_PREFIX" ] \
        || cd "$GIT_PREFIX" \
        && git diff --color "$@" | diff-so-fancy | less --tabs=4 -iRFX
}

f "$@"
