Skip to content

Commit 6640f90

Browse files
committed
Add missing libgit2 header imports
1 parent da4608b commit 6640f90

Some content is hidden

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

47 files changed

+98
-3
lines changed

ObjectiveGit/Categories/NSData+Git.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#import <Foundation/Foundation.h>
66
#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/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 {

ObjectiveGit/GTCommit.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
#import "NSDate+GTTimeAdditions.h"
3737
#import "GTOID.h"
3838

39+
#import "git2/commit.h"
40+
#import "git2/errors.h"
41+
3942
@implementation GTCommit
4043

4144
- (NSString *)description {

ObjectiveGit/GTConfiguration.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#import "NSError+Git.h"
1414
#import "GTSignature.h"
1515

16+
#import "git2/config.h"
17+
#import "git2/errors.h"
18+
1619
@interface GTConfiguration ()
1720
@property (nonatomic, readonly, assign) git_config *git_config;
1821
@end

ObjectiveGit/GTCredential.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#import "GTCredential+Private.h"
1111
#import "NSError+Git.h"
1212

13+
#import "git2/errors.h"
14+
1315
typedef GTCredential *(^GTCredentialProviderBlock)(GTCredentialType allowedTypes, NSString *URL, NSString *userName);
1416

1517
@interface GTCredentialProvider ()

ObjectiveGit/GTDiff.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
#import "GTCommit.h"
1212
#import "GTRepository.h"
1313
#import "GTTree.h"
14-
1514
#import "NSArray+StringArray.h"
1615
#import "NSError+Git.h"
1716

1817
#import "EXTScope.h"
1918

19+
#import "git2/errors.h"
20+
2021
NSString *const GTDiffOptionsFlagsKey = @"GTDiffOptionsFlagsKey";
2122
NSString *const GTDiffOptionsContextLinesKey = @"GTDiffOptionsContextLinesKey";
2223
NSString *const GTDiffOptionsInterHunkLinesKey = @"GTDiffOptionsInterHunkLinesKey";

ObjectiveGit/GTDiffDelta.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#import "GTDiffPatch.h"
1515
#import "NSError+Git.h"
1616

17+
#import "git2/errors.h"
18+
1719
@interface GTDiffDelta ()
1820

1921
/// Used to dynamically access the underlying `git_diff_delta`.

ObjectiveGit/GTDiffHunk.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#import "GTDiffLine.h"
1212
#import "GTDiffPatch.h"
1313
#import "NSError+Git.h"
14+
15+
#import "git2/errors.h"
1416
#import "git2/patch.h"
1517

1618
@interface GTDiffHunk ()

0 commit comments

Comments
 (0)