fix(mkreleaselog): specify the parent commit when diffing

Specifically, if you specify a commit, you get only that commit. This
means you get _nothing_ if you specify a merge commit.

Now, we specify to diff between a commit and it's (merge) parent.
This commit is contained in:
Steven Allen 2021-08-23 11:07:30 -07:00 committed by Adin Schmahmann
parent 3dcf651428
commit 4e132af3ef

View File

@ -152,7 +152,7 @@ ignored_commit() {
local matches
# Check to see if this commit includes any non-ignored files.
matches=$(git -C "$dir" diff-tree --no-commit-id --name-only -r "$commit" \
matches=$(git -C "$dir" diff-tree --no-commit-id --name-only -r "$commit^" "$commit" \
-- "${IGNORE_FILES_PATHSPEC[@]}" | wc -l)
[[ "$matches" -eq 0 ]]
}
@ -262,7 +262,6 @@ recursive_release_log() {
printf -- "- %s:\n" "$module"
release_log "$module" "$start" "$end" | indent
statlog "$module" "$start" "$end" > statlog.json
dep_changes old_deps.json new_deps.json |