diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-08-09 18:07:24 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-08-09 18:07:24 +0100 |
commit | fc663b35d56f8c6b1f93a6a2197b4d1a99d44bbc (patch) | |
tree | 045f4ba75e61a155de0841b7f8f345dbd1dd325d /bin/git-rebase-interdiff | |
parent | 346f34c92369e718f273aaa6f598c589dc71f3d3 (diff) | |
download | dotfiles-fc663b35d56f8c6b1f93a6a2197b4d1a99d44bbc.tar.gz |
move git-rebase-interdiff..
Diffstat (limited to 'bin/git-rebase-interdiff')
-rwxr-xr-x | bin/git-rebase-interdiff | 10 |
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 +/'^[-+][-+]' |