mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 08:18:03 +08:00
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.
(cherry picked from commit 4e132af3ef)
This commit is contained in:
parent
2d39130ade
commit
0884f2dd70
@ -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 |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user