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
Please support using notes via a commit rather than a ref #3782
Comments
@joshtriplett I'd like to help with this if possible. But I don't see how the |
@richardipsum The functions that read notes would take a commit instead of a notes_ref string, and the existing functions would read the ref, turn it into a commit, and pass that. The functions that write notes would take an optional parent commit and return a new commit, and the existing functions would (with appropriate locking) read the ref, turn it into a commit, pass that, get back a commit, and write that to the ref. |
@joshtriplett Right I see, so literally just swapping the |
@richardipsum That and a |
Ack 😸 |
Hi! Sorry it's taken me so long to get this done. Pull request #4159 implements this feature request and is ready for review. :) |
@carlosmn Hi, do you have any thoughts on my attempt at implementing this feature request? |
@ethomson I implemented the solution to this issue 3 months ago and I've had no feedback at all, it seems as if there's no real desire for this functionality, can I suggest then that we close both the PR and this issue? |
@richardipsum I'm still really interested in this, and I'm sorry to see that you haven't gotten much response. |
@pks-t You seem pretty active here can you help solve this issue? I opened the PR for it ages ago |
Fixed via #4159 |
The various functions that support git notes, such as
git_note_iterator_new
,git_note_read
,git_note_create
, andgit_note_remove
all take anotes_ref
as a string (defaulting torefs/notes/commits
). Please consider adding support to use a commit instead of a ref; the functions to read notes would just need the commit, and the functions to write notes would take a notes commit and return a new notes commit. This would allow storing the notes commit(s) in another way, rather than as a reference.The existing functions that use a notes ref would then become simple wrappers around the lower-level API.
The text was updated successfully, but these errors were encountered: