Implemented branch functions. #45

Merged
yoo merged 7 commits from branch_functions into master 2014-03-10 20:59:34 -05:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit f03cec5375 - Show all commits

View File

@ -17,11 +17,11 @@ var ErrEUser = errors.New("Error in user callback function")
type ListFlags uint type ListFlags uint
type BranchT uint type BranchType uint
const ( const (
BRANCH_LOCAL BranchT = C.GIT_BRANCH_LOCAL BRANCH_LOCAL BranchType = C.GIT_BRANCH_LOCAL
BRANCH_REMOTE = C.GIT_BRANCH_REMOTE BRANCH_REMOTE = C.GIT_BRANCH_REMOTE
) )
const ( const (
@ -115,7 +115,7 @@ func (branch *Branch) IsHead() (bool, error) {
} }
func (repo *Repository) BranchLookup(branchName string, branchType BranchT) (*Branch, error) { func (repo *Repository) BranchLookup(branchName string, branchType BranchType) (*Branch, error) {
branch := new(Branch) branch := new(Branch)
cName := C.CString(branchName) cName := C.CString(branchName)