summaryrefslogtreecommitdiff
path: root/bin/git-rebase-interdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-08-09 18:07:24 +0100
committerSean Whitton <spwhitton@spwhitton.name>2018-08-09 18:07:24 +0100
commitfc663b35d56f8c6b1f93a6a2197b4d1a99d44bbc (patch)
tree045f4ba75e61a155de0841b7f8f345dbd1dd325d /bin/git-rebase-interdiff
parent346f34c92369e718f273aaa6f598c589dc71f3d3 (diff)
downloaddotfiles-fc663b35d56f8c6b1f93a6a2197b4d1a99d44bbc.tar.gz
move git-rebase-interdiff..
Diffstat (limited to 'bin/git-rebase-interdiff')
-rwxr-xr-xbin/git-rebase-interdiff10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/git-rebase-interdiff b/bin/git-rebase-interdiff
new file mode 100755
index 00000000..3092dc19
--- /dev/null
+++ b/bin/git-rebase-interdiff
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# by Ian Jackson 2018, licensed MIT
+
+set -e
+gitdir=`git-rev-parse --git-dir`
+read <"$gitdir"/rebase-merge/stopped-sha stopped
+diff -u "$@" <(git show --oneline -p $stopped) <(git diff HEAD) \
+ | tail +3 \
+ | less +/'^[-+][-+]'