Permalink
Browse files

RevSpecifier: Add support for a working directory

This indicates the directory in which the Revparameters should be run,
useful when the parameters are requested from the CLI
  • Loading branch information...
1 parent 4544816 commit 95a9cc81fc08392e3889dc9fa6ec8ff65c81a1d9 @pieter committed Sep 7, 2009
Showing with 8 additions and 5 deletions.
  1. +7 −4 PBGitRevSpecifier.h
  2. +1 −1 PBGitRevSpecifier.m
View
@@ -10,8 +10,9 @@
#import <PBGitRef.h>
@interface PBGitRevSpecifier : NSObject {
- NSString* description;
- NSArray* parameters;
+ NSString *description;
+ NSArray *parameters;
+ NSURL *workingDirectory;
}
- (id) initWithParameters:(NSArray*) params;
@@ -27,6 +28,8 @@
+ (PBGitRevSpecifier *)allBranchesRevSpec;
+ (PBGitRevSpecifier *)localBranchesRevSpec;
-@property(copy) NSString* description;
-@property(readonly) NSArray* parameters;
+@property(retain) NSString *description;
+@property(readonly) NSArray *parameters;
+@property(retain) NSURL *workingDirectory;
+
@end
View
@@ -11,7 +11,7 @@
@implementation PBGitRevSpecifier
-@synthesize parameters, description;
+@synthesize parameters, description, workingDirectory;
- (id) initWithParameters:(NSArray*) params
{

0 comments on commit 95a9cc8

Please sign in to comment.