summaryrefslogtreecommitdiff
path: root/scripts/review-patches
blob: 3013786f4a0935c2a4fa366cd60ab4e511e8d1b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -eu

tempdir="$(mktemp -d)"

cleanup()
{
    rm -rf "$tempdir"
}

trap cleanup EXIT

git format-patch -o "$tempdir" ${1:-main}
cat "$tempdir"/*.patch | colordiff | less -RS '+/^From '