We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c073202 commit 504b617Copy full SHA for 504b617
PBGitRepository.h
@@ -13,11 +13,28 @@
13
#import "PBGitRefish.h"
14
15
extern NSString* PBGitRepositoryErrorDomain;
16
-enum branchFilterTypes {
+typedef enum branchFilterTypes {
17
kGitXAllBranchesFilter = 0,
18
kGitXLocalRemoteBranchesFilter,
19
kGitXSelectedBranchFilter
20
-};
+} PBGitXBranchFilterType;
21
+
22
+static NSString * PBStringFromBranchFilterType(PBGitXBranchFilterType type) {
23
+ switch (type) {
24
+ case kGitXAllBranchesFilter:
25
+ return @"All";
26
+ break;
27
+ case kGitXLocalRemoteBranchesFilter:
28
+ return @"Local";
29
30
+ case kGitXSelectedBranchFilter:
31
+ return @"Selected";
32
33
+ default:
34
35
+ }
36
+ return @"Not a branch filter type";
37
+}
38
39
@class PBGitWindowController;
40
@class PBGitCommit;
0 commit comments