#!/bin/sh -e
#
# git-cdiff - create a diff of diffs
#
# usage: git cdiff [commit1] [commit2] <path>
#
# ---
# see: https://overflow.adminforge.de/questions/1191282/#23527631
# diff "${@:3}" <(git show $1) <(git show $2)
# git range-diff $1~..$1 $2~..$2 "${@:3}"

set -- "$1" "$2" "$*"
# shellcheck disable=SC2086
git range-diff $1~..$1 $2~..$2 "${3##* }"
