This repository was archived by the owner on Apr 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathACGitRepository.h
More file actions
50 lines (35 loc) · 1.54 KB
/
ACGitRepository.h
File metadata and controls
50 lines (35 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// ACGitRepository.h
// ACCodeSnippetRepository
//
// Created by Arnaud Coomans on 11/02/14.
// Copyright (c) 2014 Arnaud Coomans. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * const ACGitRepositoryFileChangeModifiedKey;
extern NSString * const ACGitRepositoryFileChangeCopiedKey;
extern NSString * const ACGitRepositoryFileChangeRenamedKey;
extern NSString * const ACGitRepositoryFileChangeAddedKey;
extern NSString * const ACGitRepositoryFileChangeDeletedKey;
extern NSString * const ACGitRepositoryFileChangeUnmergedKey;
@interface ACGitRepository : NSObject
@property (nonatomic, copy) NSURL *remoteRepositoryURL;
@property (nonatomic, copy) NSString *localRepositoryPath;
@property (nonatomic, copy) NSString *taskLog;
- (instancetype)initWithLocalRepositoryDirectory:(NSString*)localRepositoryPath;
- (BOOL)localRepositoryExists;
- (void)initializeLocalRepository;
- (void)initializeLocalRepositoryInDirectory:(NSString*)localRepositoryPath;
- (void)cloneRemoteRepositoryWithURL:(NSURL*)remoteRepositoryURL inDirectory:(NSString*)localRepositoryPath;
- (NSString*)identifierForCurrentCommit;
- (void)commit;
- (void)commitWithMessage:(NSString*)message;
- (void)fetch;
- (void)pull;
- (void)push;
- (void)updateLocalWithRemoteRepository;
- (NSDictionary*)changedFilesSinceCommitWithIdentifier:(NSString*)sinceIdentifier commitWithidentifier:(NSString*)toIdentifier;
- (NSDictionary*)changedFilesSinceCommitWithIdentifier:(NSString*)identifier;
- (NSDictionary*)changedFilesWithOrigin;
- (void)removeLocalRepository;
@end