Declared in | GITBranch.h |
---|
This class represents
objects.GITBranch
Branches are threads of commits in a repository, they refer to the HEAD of a thread.
Repository the branch is part of.
@property GITRepo *repo
GITBranch
.h
Ref the branch points to.
@property GITRef *ref
GITBranch
.h
Flag indicating if the branch is a remote branch.
@property BOOL remote
GITBranch
.h
+ (GITBranch *)branchWithName:(NSString *)theName inRepo:(GITRepo *)theRepo
Name of the branch
Repository to resolve the branch in
branch initialised with the name specified, or nil if the branch can't be resolved
Creates and returns a branch by the name specified.
The name of the branch is used to resolve the reference for the branch, the resolved reference is used to create the GITBranch
.
GITBranch
.h
+ (GITBranch *)branchFromRef:(GITRef *)theRef
GITRef
describing the branch
branch initialised with the reference
Creates and returns an autoreleased branch using the reference specified.
GITBranch
.h
- (id)initFromRef:(GITRef *)theRef
GITRef
describing the branch
branch initialised with the reference
Creates and returns a branch for the specified reference.
GITBranch
.h
- (NSString *)name
name of the branch
Returns the name of the branch.
GITBranch
.h
- (GITCommit *)head
Commit HEAD of the receiver
Returns the commit which represents the HEAD of the receiver.
GITBranch
.h
Last updated: 2011-2-20