mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +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.
This commit is contained in:
parent
3dcf651428
commit
4e132af3ef
@ -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