Skip to content
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

Add support for reading git notes #928

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JakobDev
Copy link

Part of #915

@pjbgf pjbgf added this to the v5.11.0 milestone Nov 17, 2023
commit, err := r.CommitObject(head.Hash())
c.Assert(err, IsNil)

note, err := r.GetNote(commit)
Copy link
Member

Choose a reason for hiding this comment

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

We need a test case that also includes notes in.

You can create a sample repository with 1-2 commits with some notes. Then you submit its pack as a PR to https://github.com/go-git/go-git-fixtures.

That would enable you to refer to that pack via ByTag as we have in other parts of the code base.

Copy link
Member

Choose a reason for hiding this comment

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

Now that we got your changes merged in the other repo, we just need to update the go-git-fixtures version to the latest.

repository.go Show resolved Hide resolved
@pjbgf
Copy link
Member

pjbgf commented Jan 17, 2024

Please reword the commit to git: Add support for reading git notes, so that the PR Validation passes.

@pjbgf pjbgf removed this from the v5.11.0 milestone Mar 7, 2024
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.

None yet

2 participants