mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add shortcuts and menu items for different views
This commit is contained in:
+1273
-1254
File diff suppressed because it is too large
Load Diff
@@ -25,4 +25,8 @@
|
||||
@property (retain) PBGitCommit* rawCommit;
|
||||
@property (retain) PBGitTree* gitTree;
|
||||
|
||||
- (IBAction) setDetailedView: sender;
|
||||
- (IBAction) setRawView: sender;
|
||||
- (IBAction) setTreeView: sender;
|
||||
|
||||
@end
|
||||
|
||||
@@ -61,4 +61,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction) setDetailedView: sender {
|
||||
self.selectedTab = [NSNumber numberWithInt:0];
|
||||
}
|
||||
- (IBAction) setRawView: sender {
|
||||
self.selectedTab = [NSNumber numberWithInt:1];
|
||||
}
|
||||
- (IBAction) setTreeView: sender {
|
||||
self.selectedTab = [NSNumber numberWithInt:2];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
+2
-1
@@ -33,7 +33,8 @@
|
||||
|
||||
NSFileHandle* handle = [self.repository handleForCommand:[@"show --pretty=raw " stringByAppendingString:self.sha]];
|
||||
details = [[NSString alloc] initWithData:[handle readDataToEndOfFile] encoding: NSASCIIStringEncoding];
|
||||
return details;
|
||||
|
||||
return details;
|
||||
}
|
||||
|
||||
- (PBGitTree*) tree
|
||||
|
||||
Reference in New Issue
Block a user