Skip to content

fix(tree): peel to the final tree entry#2489

Merged
Sebastian Thiel (Byron) merged 3 commits intomainfrom
fix-entry-by-path
Mar 26, 2026
Merged

fix(tree): peel to the final tree entry#2489
Sebastian Thiel (Byron) merged 3 commits intomainfrom
fix-entry-by-path

Conversation

@Byron
Copy link
Copy Markdown
Member

Summary

  • update Tree::peel_to_entry{_by_path} to move self to the final tree entry when the leaf entry is a tree
  • clarify the behavior in the API docs
  • add a regression test for peeling to a tree leaf

Testing

  • cargo test -p gix --test gix object::tree::

Refs #2456
Context: #2456 (comment)

…f it's a tree)

Co-authored-by: GPT 5.4 <codex@openai.com>
Co-authored-by: GPT 5.4 <codex@openai.com>
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ccc8500b17

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
@Byron Sebastian Thiel (Byron) merged commit ec66ceb into main Mar 26, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tree::peel_to_entry{_by_path} does not point to to "last seen tree" if leaf entry is a Tree

3 participants