+ printf '\n%s missing a Signed-off-by from %s %s%s.\n\n' \
+ "$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[@]}"