mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
Add tool to produce diff of markdown
This commit is contained in:
parent
d4ea984d85
commit
d562d815b5
12
tools/md-diff.sh
Executable file
12
tools/md-diff.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/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 -)
|
Loading…
Reference in New Issue
Block a user