Skip to content

ptree: Merge shared ancestor paths when displaying multiple target PIDs#111

Merged
basil merged 2 commits intomasterfrom
ancestor
Mar 5, 2026
Merged

ptree: Merge shared ancestor paths when displaying multiple target PIDs#111
basil merged 2 commits intomasterfrom
ancestor

Conversation

@basil
Copy link
Owner

@basil basil commented Mar 5, 2026

When multiple target PIDs share common ancestors, merge their ancestry chains into a single tree instead of printing redundant separate trees. This builds a pruned children map from ancestor chains and renders a unified output where ancestor-only nodes show pruned branches and target PIDs expand their full subtrees.

Fixes #77

When multiple target PIDs share common ancestors, merge their ancestry
chains into a single tree instead of printing redundant separate trees.
This builds a pruned children map from ancestor chains and renders a
unified output where ancestor-only nodes show pruned branches and target
PIDs expand their full subtrees.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@basil basil added the Type: Bug An unexpected problem or behavior label Mar 5, 2026
@github-actions github-actions bot added the Component: ptree Issues related to ptree(1) label Mar 5, 2026
@basil basil merged commit f9d8192 into master Mar 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: ptree Issues related to ptree(1) Type: Bug An unexpected problem or behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ptree(1) ancestor display

1 participant