Skip to content

Ref DB: Expose method to allocate a new reflog - #7041

Open
mburtka wants to merge 1 commit into
libgit2:mainfrom
mburtka:expose-reflog-alloc
Open

Ref DB: Expose method to allocate a new reflog#7041
mburtka wants to merge 1 commit into
libgit2:mainfrom
mburtka:expose-reflog-alloc

Conversation

@mburtka

@mburtka mburtka commented Feb 20, 2025

Copy link
Copy Markdown

Hi there,

I was trying to interop with C# and create a custom refdb backend. I was unable to allocate a new git_reflog to implement read_reflog. The reflog_alloc that already existed in the fs implementation of a ref db has nothing restricting it to file system usage, so I moved to collocate with other reflog implementations and exposed it as part of the API (as a semi-private).

@csware

csware commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

The name should follow the existing naming schema (such as git_reflog_new, cf. https://libgit2.github.io/libgit2/#HEAD/group/config/git_config_new).

@MayCXC

MayCXC commented Jun 24, 2026

Copy link
Copy Markdown

bump

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.

4 participants