Skip to content

Use gitoxide for get_tags #2664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cruessler
Copy link
Collaborator

@cruessler cruessler commented Jun 9, 2025

This PR is a draft, currently intended for a discussion with @Byron about the part of the API to be used for getting a reference’s name. I intend to mark it as ready once I’ve figured out how to best use the existing APIs.

Update 2025-06-09: this PR is now ready for review.

This PR changes the following:

  • It converts get_tags to use gitoxide under the hood.
  • It seems the current implementation might have a bug. At least, the gitoxide version properly show an @ symbol in the tags popup for annotated tags, something the libgit version doesn’t do. (I didn’t investigate this in depth, though.)

I followed the checklist:

  • I ran make check without errors
  • I tested the overall application

@cruessler cruessler marked this pull request as draft June 9, 2025 12:32
@cruessler cruessler force-pushed the use-gitoxide-for-tags branch from 8604295 to 49cd6a7 Compare June 9, 2025 12:49
Copy link

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Thanks for inviting me!

To me this looks like the code should work while being reasonably defensive.
What am I missing?

@cruessler cruessler marked this pull request as ready for review June 9, 2025 16:26
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.

2 participants