Implement the missing HEAD functions #88

Closed
opened 2014-05-01 20:16:03 -05:00 by tchap · 2 comments
tchap commented 2014-05-01 20:16:03 -05:00 (Migrated from github.com)

Hi,

would be cool to implement

git_repository_set_head
git_repository_set_head_detached

since I haven't really found any other sane way how to perform a checkout or a merge without these. Both Repository.CheckoutHead and Repository.Merge depend on HEAD.

Hope that I am not saying complete bullshit, it's 3am and I am brain-dead.

Regards,
Ondrej Kupka

Hi, would be cool to implement ``` git_repository_set_head git_repository_set_head_detached ``` since I haven't really found any other sane way how to perform a checkout or a merge without these. Both `Repository.CheckoutHead` and `Repository.Merge` depend on `HEAD`. Hope that I am not saying complete bullshit, it's 3am and I am brain-dead. Regards, Ondrej Kupka
tchap commented 2014-05-01 20:16:22 -05:00 (Migrated from github.com)

Will try to implement these when I have time...

Will try to implement these when I have time...
tchap commented 2014-05-02 03:49:46 -05:00 (Migrated from github.com)

You can just follow the link above to see the commit implementing this. Not sending a pull request yet since I haven't even tried to build it since I don't have libgit2 installed on this computer. Do we need any tests for this? Looks pretty trivial, but...

You can just follow the link above to see the commit implementing this. Not sending a pull request yet since I haven't even tried to build it since I don't have `libgit2` installed on this computer. Do we need any tests for this? Looks pretty trivial, but...
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#88
No description provided.