diff --git a/Classes/GTBranch.h b/Classes/GTBranch.h index d1111ff0e..59f0d29b3 100644 --- a/Classes/GTBranch.h +++ b/Classes/GTBranch.h @@ -47,7 +47,7 @@ + (id)branchFromCurrentBranchInRepository:(GTRepository *)repo error:(NSError **)error; -// Get the most recent commit in this repository +// Get the target commit for this branch // // error(out) - will be filled if an error occurs // diff --git a/Classes/GTBranch.m b/Classes/GTBranch.m index bcacaadfe..8502772b9 100644 --- a/Classes/GTBranch.m +++ b/Classes/GTBranch.m @@ -139,12 +139,6 @@ - (NSString *)sha { - (GTCommit *)targetCommitAndReturnError:(NSError **)error { - //[self.repository.walker reset]; -// [self.repository.walker setSortingOptions:GTWalkerOptionsTopologicalSort]; -// BOOL success = [self.repository.walker push:self.reference.target error:error]; -// if(!success) return nil; -// -// return [self.repository.walker next]; return (GTCommit *)[self.repository lookupBySha:self.sha error:error]; }