We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c3ee96 commit d05deb9Copy full SHA for d05deb9
PBGitRevSpecifier.m
@@ -47,9 +47,19 @@ + (PBGitRevSpecifier *)localBranchesRevSpec
47
[revspec setDescription:@"Local branches"];
48
return revspec;
49
}
50
+
51
- (BOOL) isSimpleRef
52
{
- return ([parameters count] == 1 && ![[parameters objectAtIndex:0] hasPrefix:@"-"]);
53
+ if ([parameters count] > 1)
54
+ return NO;
55
56
+ NSString *param = [parameters objectAtIndex:0];
57
+ if ([param hasPrefix:@"-"] ||
58
+ [param rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"^@{}~:"]].location != NSNotFound ||
59
+ [param rangeOfString:@".."].location != NSNotFound)
60
61
62
+ return YES;
63
64
65
- (NSString*) simpleRef
0 commit comments