Skip to content

Commit does not create reflog entry #371

Closed
Haacked opened this Issue Mar 25, 2013 · 5 comments

4 participants

@Haacked
Haacked commented Mar 25, 2013

When using the Repository.Commit method to create commits, no reflog entry is created.

@Saaman
Saaman commented Mar 27, 2013

I will work on this one.

@dahlbyk
libgit2 member
dahlbyk commented Mar 27, 2013

Should this be the domain of libgit2?

@nulltoken
libgit2 member

Should this be the domain of libgit2?

Eventually, it should be handled by libgit2. In the meantime, it looks helpful to deal it at the binding level.

@Saaman Could you also bind the reading of the Reflog as part of this? Something like

IEnumerable<Reflog> reflogs = repo.Refs.Log(string canonicalReferenceName);
IEnumerable<Reflog> reflogs = repo.Refs.Log(Reference reference);
@Saaman
Saaman commented Mar 27, 2013

Ok, I will also bind the reading of the Reflog.

@nulltoken
libgit2 member

@Saaman ❤️

This was referenced Mar 28, 2013
@nulltoken nulltoken pushed a commit that closed this issue Apr 10, 2013
@Saaman Saaman Insert new reflog entry on commit
Fix #371

Insert entry on HEAD and target direct reference on commit
Tag as initial the first commit
90c9b20
@nulltoken nulltoken closed this in 90c9b20 Apr 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.