5 // Created by Pieter de Bie on 06-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
12 @implementation PBGitRef
15 - (NSString*) shortName
18 return [ref substringFromIndex:[[self type] length] + 7];
24 if ([ref hasPrefix:@"refs/heads"])
26 if ([ref hasPrefix:@"refs/tags"])
28 if ([ref hasPrefix:@"refs/remotes"])
33 + (PBGitRef*) refFromString: (NSString*) s
35 return [[PBGitRef alloc] initWithString:s];
38 - (PBGitRef*) initWithString: (NSString*) s
44 + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector
49 + (BOOL)isKeyExcludedFromWebScript:(const char *)name {