Skip to content

Commit ec53c3e

Browse files
committed
Merge pull request #417 from libgit2/optimize-build
Use more granular libgit2 imports, don't clean every build
2 parents e97b64f + 1920464 commit ec53c3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+122
-38
lines changed

ObjectiveGit/Categories/NSArray+StringArray.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
11-
#import "git2.h"
10+
#import "git2/strarray.h"
1211

1312
@interface NSArray (StringArray)
1413

ObjectiveGit/Categories/NSData+Git.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
//
44

55
#import <Foundation/Foundation.h>
6-
#import "git2.h"
6+
#import "git2/buffer.h"
7+
#import "git2/oid.h"
78

89
@interface NSData (Git)
910

ObjectiveGit/Categories/NSData+Git.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#import "NSData+Git.h"
66
#import "NSError+Git.h"
77

8+
#import "git2/errors.h"
9+
810
@implementation NSData (Git)
911

1012
+ (NSData *)git_dataWithOid:(git_oid *)oid {

ObjectiveGit/Categories/NSDate+GTTimeAdditions.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
11-
#import "git2.h"
10+
#import "git2/types.h"
1211

1312
@interface NSDate (GTTimeAdditions)
1413

ObjectiveGit/Categories/NSError+Git.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//
2929

3030
#import "NSError+Git.h"
31-
#import "git2.h"
31+
#import "git2/errors.h"
3232

3333
NSString * const GTGitErrorDomain = @"GTGitErrorDomain";
3434

ObjectiveGit/Categories/NSString+Git.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
//
2929

3030
#import <Foundation/Foundation.h>
31-
#import "git2.h"
3231

3332
@interface NSString (Git)
3433

ObjectiveGit/GTBlame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "git2.h"
10+
#import "git2/blame.h"
1111

1212
@class GTBlameHunk;
1313
@class GTRepository;

ObjectiveGit/GTBlameHunk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "git2.h"
10+
#import "git2/blame.h"
1111

1212
@class GTOID;
1313
@class GTSignature;

ObjectiveGit/GTBlob.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
#import "NSError+Git.h"
3535
#import "NSString+Git.h"
3636

37+
#import "git2/blob.h"
38+
#import "git2/errors.h"
39+
3740
@implementation GTBlob
3841

3942
- (NSString *)description {

ObjectiveGit/GTBranch.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
#import "GTRemote.h"
3232
#import "NSError+Git.h"
3333

34+
#import "git2/branch.h"
35+
#import "git2/errors.h"
36+
#import "git2/graph.h"
37+
3438
@implementation GTBranch
3539

3640
- (NSString *)description {

0 commit comments

Comments
 (0)