1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-25 10:42:19 -05:00
xeps/tools/md-diff.sh

13 lines
278 B
Bash
Raw Normal View History

2021-02-18 10:48:50 -05:00
#!/bin/bash
# md-diff
# arguments: file commit commit [diff tool with args]
if [ $# -lt 3 ]; then
echo 'arguments: file commit commit [diff tool with args]' >&2
exit 1;
fi
${4:-diff} \
<(git show "$2:$1" | ${0%/*}/xep2md.sh -) \
<(git show "$3:$1" | ${0%/*}/xep2md.sh -)