summaryrefslogtreecommitdiff
path: root/scripts/review-patches
blob: cd4a77e1b9cf5be5519731ba27b89cc1af895155 (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:-master}
cat "$tempdir"/*.patch | colordiff | less -RS '+/^From '