mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
GitRepository: Add an "all branches" option in branches list
This is probably the most common non-branch GitX option, so let's add it by default
This commit is contained in:
+8
-1
@@ -11,7 +11,7 @@
|
||||
|
||||
@implementation PBGitRevSpecifier
|
||||
|
||||
@synthesize parameters;
|
||||
@synthesize parameters, description;
|
||||
|
||||
- (id) initWithParameters:(NSArray*) params
|
||||
{
|
||||
@@ -27,6 +27,13 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (PBGitRevSpecifier *)allBranchesRevSpec
|
||||
{
|
||||
id revspec = [[PBGitRevSpecifier alloc] initWithParameters:[NSArray arrayWithObject:@"--all"]];
|
||||
[revspec setDescription:@"All branches"];
|
||||
return revspec;
|
||||
}
|
||||
|
||||
- (BOOL) isSimpleRef
|
||||
{
|
||||
return ([parameters count] == 1 && ![[parameters objectAtIndex:0] hasPrefix:@"-"]);
|
||||
|
||||
Reference in New Issue
Block a user