Skip to content

Conversation

@Byron
Copy link
Collaborator

@Byron Byron commented Aug 23, 2024

Follow-up of #4670

Tasks

  • Use improved rev-walk API for convenience similar to git2
  • validate that rev-walk won't accidentally 'overshoot' and traverse the entire history
    • This was an issue before setting the cutoff by hand, but fortunately the new API covers this automatically.
  • validated visually on GitLab repository that the traversal order is the same

@vercel
Copy link

vercel bot commented Aug 23, 2024

@Byron is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the rust Pull requests that update Rust code label Aug 23, 2024
@Byron Byron mentioned this pull request Aug 23, 2024
12 tasks
Byron added 2 commits August 23, 2024 13:08
It's a bit more intuitive than `id().ancestors()` when coming from `git2`.

type OidFilter = dyn Fn(&git2::Commit) -> Result<bool>;

/// Generally, all traversals will use no particular ordering, it's implementation defined in `git2`.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I looked into replacing l with gitoxide, but only ended up documenting this type as I though it's not really worth replacing something this trivial as it would need to on-demand open a gix::Repository again.

Once merge_base is also available, I think I might change the CommandContext to also open a gix::Repository lazily.

@Byron Byron marked this pull request as ready for review August 23, 2024 11:24
@vercel
Copy link

vercel bot commented Aug 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 11:40am

@Byron Byron merged commit ca62ac8 into gitbutlerapp:master Aug 23, 2024
@Byron Byron deleted the git2-to-gix branch August 23, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants