summaryrefslogtreecommitdiff
path: root/scripts/review-patches
blob: 12c9c40e78e05ccdd7f2ee4fe428e9165a90cbdb (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 '