gen-diff-patch (1ac731c529cd4d6adbce134754b51ff7d822b145) gen-diff-patch (c0414419758b2521c2038847960af258c678db8d)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-only
3
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-only
3
4set -eu
5
4diff_patch=$1
5
6mkdir -p "$(dirname "${diff_patch}")"
7
8git -C "${srctree:-.}" diff HEAD > "${diff_patch}"
9
10if [ ! -s "${diff_patch}" ] ||
11 [ -z "$(git -C "${srctree:-.}" ls-files --other --exclude-standard | head -n1)" ]; then

--- 25 unchanged lines hidden ---
6diff_patch=$1
7
8mkdir -p "$(dirname "${diff_patch}")"
9
10git -C "${srctree:-.}" diff HEAD > "${diff_patch}"
11
12if [ ! -s "${diff_patch}" ] ||
13 [ -z "$(git -C "${srctree:-.}" ls-files --other --exclude-standard | head -n1)" ]; then

--- 25 unchanged lines hidden ---