mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add --init and --clone to gitx CLI and Applescript
Allows creating repositories from the command line, Applescript, or the scripting bridge. These are basic commands, if you need to use commandline options then use git itself.
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
@synthesize errorMessage;
|
||||
@synthesize repositoryAccessoryView;
|
||||
|
||||
@synthesize isBare;
|
||||
|
||||
|
||||
|
||||
#pragma mark -
|
||||
@@ -31,6 +33,21 @@
|
||||
return [[self alloc] initWithWindowNibName:@"PBCloneRepositoryPanel"];
|
||||
}
|
||||
|
||||
+ (void)beginCloneRepository:(NSString *)repository toURL:(NSURL *)targetURL isBare:(BOOL)bare
|
||||
{
|
||||
if (!repository || [repository isEqualToString:@""] || !targetURL || [[targetURL path] isEqualToString:@""])
|
||||
return;
|
||||
|
||||
PBCloneRepositoryPanel *clonePanel = [PBCloneRepositoryPanel panel];
|
||||
[clonePanel showWindow:self];
|
||||
|
||||
[clonePanel.repositoryURL setStringValue:repository];
|
||||
[clonePanel.destinationPath setStringValue:[targetURL path]];
|
||||
clonePanel.isBare = bare;
|
||||
|
||||
[clonePanel clone:self];
|
||||
}
|
||||
|
||||
|
||||
- (void) awakeFromNib
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user