mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add PBStringFromBranchFilterType() function for debugging purposes to PBGitRepository.
Add a PBGitXBranchFilterType typedef to the kGitX... branch filters enum.
This commit is contained in:
+19
-2
@@ -13,11 +13,28 @@
|
||||
#import "PBGitXErrors.h"
|
||||
#import "PBGitRefish.h"
|
||||
|
||||
enum branchFilterTypes {
|
||||
typedef enum branchFilterTypes {
|
||||
kGitXAllBranchesFilter = 0,
|
||||
kGitXLocalRemoteBranchesFilter,
|
||||
kGitXSelectedBranchFilter
|
||||
};
|
||||
} PBGitXBranchFilterType;
|
||||
|
||||
static NSString * PBStringFromBranchFilterType(PBGitXBranchFilterType type) {
|
||||
switch (type) {
|
||||
case kGitXAllBranchesFilter:
|
||||
return @"All";
|
||||
break;
|
||||
case kGitXLocalRemoteBranchesFilter:
|
||||
return @"Local";
|
||||
break;
|
||||
case kGitXSelectedBranchFilter:
|
||||
return @"Selected";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return @"Not a branch filter type";
|
||||
}
|
||||
|
||||
@class PBGitWindowController;
|
||||
@class PBGitCommit;
|
||||
|
||||
Reference in New Issue
Block a user