Skip to content

Commit f1f2d6a

Browse files
committed
pkgdiff: Ignore searchindex.js by default
Signed-off-by: Michał Górny <[email protected]>
1 parent 1ec23e9 commit f1f2d6a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkgdiff

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
set -e -x
55

6-
mode=
6+
mode=default
77
while [[ ${#} -gt 0 ]]; do
88
case ${1} in
9+
--all|-a)
10+
mode=
11+
;;
912
--build-system|-b)
1013
mode=build-system
1114
;;
@@ -75,5 +78,11 @@ s2=$(sed -nr 's/^declare -x S="(.*)"/\1/p' "${PORTAGE_TMPDIR}"/portage/${cat2}/$
7578
-name 'Cargo.toml' \
7679
\) -printf "%f\n"
7780
;;
81+
default)
82+
find "${s1}" "${s2}" -type f \
83+
\( \
84+
-name 'searchindex.js' \
85+
\) -printf "%f\n"
86+
;;
7887
esac
7988
} | diff --color=always --exclude=".git" --strip-trailing-cr -X - -dupNr "${s1}" "${s2}" | ${PAGER:-less}

0 commit comments

Comments
 (0)