5 // Created by Pieter de Bie on 22-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
9 #import "PBChangedFile.h"
10 #import "PBEasyPipe.h"
12 @implementation PBChangedFile
14 @synthesize path, status, hasStagedChanges, hasUnstagedChanges, commitBlobSHA, commitBlobMode;
16 - (id) initWithPath:(NSString *)p
25 - (NSString *)indexInfo
27 if (!self.commitBlobSHA)
28 return [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t%@\0", self.path];
30 return [NSString stringWithFormat:@"%@ %@\t%@\0", self.commitBlobMode, self.commitBlobSHA, self.path];
38 filename = @"new_file";
41 filename = @"deleted_file";
44 filename = @"empty_file";
47 NSString *p = [[NSBundle mainBundle] pathForResource:filename ofType:@"png"];
48 return [[NSImage alloc] initByReferencingFile: p];
51 + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector
56 + (BOOL)isKeyExcludedFromWebScript:(const char *)name {