summaryrefslogtreecommitdiff
path: root/scripts/review-patches
blob: d7547d0c6787f7923d2a20a33ee0c37cd053bdb7 (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}
less -S "$tempdir"/*.patch