summaryrefslogtreecommitdiff
path: root/bin/git-rebase-interdiff
blob: 7ebe3fa956e3852ad49dca99b77c1168b5042fb7 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env 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 +/'^[-+][-+]'