exit 0
fi
+"$(realpath "$(dirname "$0")")/check_fixes" "$@"
+
declare -a author_missing committer_missing
print_commits()
"$is" "$its" "$t" "$s"
}
+check_unexpected_files()
+{
+ local files
+
+ readarray files < <(git diff-tree -r --diff-filter=A --name-only --no-commit-id "$1" '*.rej' '*.orig')
+ if [ "${#files[@]}" -eq 0 ]; then
+ return
+ fi
+
+ s=
+ this='this'
+ if [ "${#files[@]}" -gt 1 ]; then
+ s='s'
+ this='these'
+ fi
+
+ printf 'Commit\n\n'
+ git log --no-walk --pretty='format: %h ("%s")' "$1"
+ printf '\nadded %s unexpected file%s:\n\n' "$this" "$s"
+ printf ' %s\n' "${files[@]}"
+}
+
for c in $commits; do
ae=$(git log -1 --format='<%ae>%n<%aE>%n %an %n %aN ' "$c" | sort -u)
ce=$(git log -1 --format='<%ce>%n<%cE>%n %cn %n %cN ' "$c" | sort -u)
if ! grep -i -F -q "$ce" <<<"$sob"; then
committer_missing+=("$c")
fi
+
+ check_unexpected_files "$c"
done
print_commits 'author' "${author_missing[@]}"