Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

can get all the way to the commitsViewController

  • Loading branch information...
commit 973c0a8e9810ec4afbfb66e3e930edc42047650f 1 parent 13b8199
@schacon authored
View
BIN  .DS_Store
Binary file not shown
View
12 Controllers/ProjectDetailViewController.m
@@ -66,8 +66,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cellText = [detailItem desc];
break;
case 1:
- cellText = [[[detailItem branches] objectAtIndex:indexPath.row] objectAtIndex:0];
-
+ cellText = [[[detailItem branches] objectAtIndex:indexPath.row] name];
break;
default:
break;
@@ -100,15 +99,12 @@ - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInte
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
CommitsViewController *commitsViewController = [[CommitsViewController alloc] initWithStyle:UITableViewStylePlain];
- NSArray *refArray = [[detailItem branches] objectAtIndex:indexPath.row];
- NSLog(@"refs:%@", refArray);
+ GITRef *ref = [[detailItem branches] objectAtIndex:indexPath.row];
commitsViewController.gitRepo = detailItem;
- commitsViewController.gitRef = [refArray objectAtIndex:0];
- commitsViewController.gitSha = [refArray objectAtIndex:1];
+ commitsViewController.gitRef = [ref name];
+ commitsViewController.gitSha = [ref sha1];
- NSLog(@"TEST");
-
// Push the commit view controller
[[self navigationController] pushViewController:commitsViewController animated:YES];
[commitsViewController release];
View
1  Controllers/ProjectViewController.h
@@ -6,6 +6,7 @@
#import <UIKit/UIKit.h>
#import "ProjectController.h"
#import "Git.h"
+#import "GITRef.h"
@interface ProjectViewController : UITableViewController {
ProjectController *projectController;
Please sign in to comment.
Something went wrong with that request. Please try again.