Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 369 Bytes
#!/bin/sh
GITPAGER=$(git config --get core.pager)
ICDIFF_OPTIONS=$(git config --get icdiff.options)
if [ -z "$GITPAGER" ]; then
GITPAGER="$PAGER"
fi
if [ -z "$GITPAGER" ]; then
GITPAGER="less"
fi
if [ "$GITPAGER" = "more" ] || [ "$GITPAGER" = "less" ]; then
GITPAGER="$GITPAGER -R"
fi
git difftool --no-prompt --extcmd="icdiff $ICDIFF_OPTIONS" $* | $GITPAGER