#!/usr/bin/env bash

cat - > /dev/null
cd $MARKED_ORIGIN
git diff --no-color --word-diff -U99999 -- $MARKED_PATH |
	sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s/-\]/--}/g;s/{\+/{++/g;s/\+}/++}/g'

#!/usr/bin/env bash

cd $MARKED_ORIGIN
if git diff --quiet -- $MARKED_PATH; then
    cat -
    exit
else
    cat - > /dev/null
    git diff --no-color --word-diff -U99999 -- $MARKED_PATH |
        sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s/-\]/--}/g;s/{\+/{++/g;s/\+}/++}/g'
fi

Handle case of no differences in diff preprocessor
Handle case of no differences in diff preprocessor
