blob: c4af66211175f735d38add066ebab6d06218531d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/hint/bash
#
# SPDX-License-Identifier: GPL-3.0-or-later
[[ -z ${DEVTOOLS_INCLUDE_UTIL_GIT_SH:-} ]] || return 0
DEVTOOLS_INCLUDE_UTIL_GIT_SH=1
_DEVTOOLS_LIBRARY_DIR=${_DEVTOOLS_LIBRARY_DIR:-@pkgdatadir@}
git_diff_tree() {
local commit=$1
local path=$2
git \
--no-pager \
diff \
--color=never \
--color-moved=no \
--unified=0 \
--no-prefix \
--no-ext-diff \
"${commit}" \
-- "${path}"
}
|