Implemented branch functions. #45

Merged
yoo merged 7 commits from branch_functions into master 2014-03-10 20:59:34 -05:00
yoo commented 2013-10-07 19:25:55 -05:00 (Migrated from github.com)

I implemented the branch functions found in the libgit2 API doc.
These changes introduce a new data type: Branch which directly inherits form Reference.
The functions which work on a Repository are glued to the Repository type, functions which work on a Branch a glued to the Branch type.
The Implementation for BranchForeach() is a port form the original C implementation. The payload of the callback function is a interface and can be used with a type assertion.
The callback function returns a error which can be a custom error value defined by the user. A default error value (ErrEUser) for the callback is already provided.

I implemented the branch functions found in the [libgit2 API doc](http://libgit2.github.com/libgit2/#HEAD/group/branch). These changes introduce a new data type: Branch which directly inherits form Reference. The functions which work on a Repository are glued to the Repository type, functions which work on a Branch a glued to the Branch type. The Implementation for BranchForeach() is a port form the original C implementation. The payload of the callback function is a interface and can be used with a type assertion. The callback function returns a error which can be a custom error value defined by the user. A default error value (ErrEUser) for the callback is already provided.
yoo commented 2013-10-30 09:09:30 -05:00 (Migrated from github.com)

I deleted the BranchForeach function like you mentioned.

I deleted the BranchForeach function like you mentioned.
Sign in to join this conversation.
No reviewers
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#45
No description provided.