Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion External/libgit2
Submodule libgit2 updated 3210 files
2 changes: 1 addition & 1 deletion ObjectiveGit/Categories/NSArray+StringArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/strarray.h"
#import <git2/strarray.h>

@interface NSArray (StringArray)

Expand Down
4 changes: 2 additions & 2 deletions ObjectiveGit/Categories/NSData+Git.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/buffer.h"
#import "git2/oid.h"
#import <git2/buffer.h>
#import <git2/oid.h>

@interface NSData (Git)

Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/Categories/NSData+Git.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#import "NSError+Git.h"

#import "git2/errors.h"
#import "git2/deprecated.h"

@implementation NSData (Git)

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/Categories/NSDate+GTTimeAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/types.h"
#import <git2/types.h>

@interface NSDate (GTTimeAdditions)

Expand Down
3 changes: 2 additions & 1 deletion ObjectiveGit/GTBlame.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/blame.h"
#import <git2/types.h>
#import <git2/blame.h>

@class GTBlameHunk;
@class GTRepository;
Expand Down
3 changes: 2 additions & 1 deletion ObjectiveGit/GTBlameHunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/blame.h"
#import <git2/types.h>
#import <git2/blame.h>

@class GTOID;
@class GTSignature;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTBlob.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#import "git2/blob.h"
#import "git2/errors.h"
#import "git2/deprecated.h"

@implementation GTBlob

Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTBranch.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#import "git2/branch.h"
#import "git2/errors.h"
#import "git2/graph.h"
#import "git2/deprecated.h"

@implementation GTBranch

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTCheckoutOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/checkout.h"
#import <git2/checkout.h>

@class GTDiffFile;

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/types.h"
#import <git2/types.h>

@class GTRemote;
@class GTRepository;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "git2/config.h"
#import "git2/errors.h"
#import "git2/buffer.h"
#import "git2/deprecated.h"

@interface GTConfiguration ()
@property (nonatomic, readonly, assign) git_config *git_config;
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTCredential+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ typedef struct {
__unsafe_unretained GTCredentialProvider *credProvider;
} GTCredentialAcquireCallbackInfo;

int GTCredentialAcquireCallback(git_cred **cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload);
int GTCredentialAcquireCallback(git_credential **cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload);
16 changes: 8 additions & 8 deletions ObjectiveGit/GTCredential.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
//

#import <Foundation/Foundation.h>
#import "git2/transport.h"
#import <git2/transport.h>

/// An enum describing the data needed for authentication.
/// See `git_credtype_t`.
/// See `git_credential_t`.
typedef NS_ENUM(NSInteger, GTCredentialType) {
GTCredentialTypeUserPassPlaintext = GIT_CREDTYPE_USERPASS_PLAINTEXT,
GTCredentialTypeSSHKey = GIT_CREDTYPE_SSH_KEY,
GTCredentialTypeSSHCustom = GIT_CREDTYPE_SSH_CUSTOM,
GTCredentialTypeUserPassPlaintext = GIT_CREDENTIAL_USERPASS_PLAINTEXT,
GTCredentialTypeSSHKey = GIT_CREDENTIAL_SSH_KEY,
GTCredentialTypeSSHCustom = GIT_CREDENTIAL_SSH_CUSTOM,
};

NS_ASSUME_NONNULL_BEGIN
Expand Down Expand Up @@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN
@end

/// The GTCredential class is used to provide authentication data.
/// It acts as a wrapper around `git_cred` objects.
/// It acts as a wrapper around `git_credential` objects.
@interface GTCredential : NSObject

/// Create a credential object from a username/password pair.
Expand Down Expand Up @@ -86,8 +86,8 @@ NS_ASSUME_NONNULL_BEGIN
/// Return a new GTCredential instance, or nil if an error occurred
+ (instancetype _Nullable)credentialWithUserName:(NSString *)userName publicKeyString:(NSString * _Nullable)publicKeyString privateKeyString:(NSString *)privateKeyString passphrase:(NSString * _Nullable)passphrase error:(NSError **)error;

/// The underlying `git_cred` object.
- (git_cred *)git_cred __attribute__((objc_returns_inner_pointer));
/// The underlying `git_credential` object.
- (git_credential *)git_credential __attribute__((objc_returns_inner_pointer));

@end

Expand Down
2 changes: 2 additions & 0 deletions ObjectiveGit/GTCredential.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#import "NSError+Git.h"

#import "git2/errors.h"
#import "git2/deprecated.h"
#import "git2/sys/errors.h"

typedef GTCredential *(^GTCredentialProviderBlock)(GTCredentialType allowedTypes, NSString *URL, NSString *userName);

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTDiff.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/diff.h"
#import <git2/diff.h>
#import "GTDiffDelta.h"

@class GTDiffDelta;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTDiff.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#import "EXTScope.h"

#import "git2/errors.h"
#import "git2/deprecated.h"

NSString *const GTDiffOptionsFlagsKey = @"GTDiffOptionsFlagsKey";
NSString *const GTDiffOptionsContextLinesKey = @"GTDiffOptionsContextLinesKey";
Expand Down
4 changes: 2 additions & 2 deletions ObjectiveGit/GTDiffDelta.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/diff.h"
#import "GTDiffFile.h"
#import <git2/diff.h>
#import <ObjectiveGit/GTDiffFile.h>

@class GTBlob;
@class GTDiff;
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTDiffFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/diff.h"
#import <git2/diff.h>

/// Flags which may be set on the file.
///
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTDiffLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/diff.h"
#import <git2/diff.h>

/// A character representing the origin of a given line.
///
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTDiffPatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/patch.h"
#import <git2/patch.h>

@class GTDiffHunk;
@class GTDiffDelta;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTDiffPatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "GTDiffPatch.h"

#import "GTDiffHunk.h"
#import "git2/deprecated.h"

@interface GTDiffPatch ()

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTEnumerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#import <Foundation/Foundation.h>
#import "GTObject.h"
#import "git2/revwalk.h"
#import <git2/revwalk.h>

/// Options to specify enumeration order when enumerating through a repository.
/// With the exception of GTEnumeratorOptionsNone, the values here can be ORed
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#import "git2/errors.h"
#import "git2/sys/filter.h"
#import "git2/deprecated.h"

NSString * const GTFilterErrorDomain = @"GTFilterErrorDomain";

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTFilterList.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/filter.h"
#import <git2/filter.h>

@class GTBlob;
@class GTRepository;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTFilterList.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "NSError+Git.h"

#import "git2/errors.h"
#import "git2/deprecated.h"

@interface GTFilterList ()

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTFilterSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/sys/filter.h"
#import <git2/sys/filter.h>

@class GTOID;
@class GTRepository;
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//

#import <Foundation/Foundation.h>
#include "git2/types.h"
#include <git2/types.h>

@class GTIndexEntry;
@class GTRepository;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTIndex.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#import "NSError+Git.h"

#import "git2/errors.h"
#import "git2/deprecated.h"

// The block synonymous with libgit2's `git_index_matched_path_cb` callback.
typedef BOOL (^GTIndexPathspecMatchedBlock)(NSString *matchedPathspec, NSString *path, BOOL *stop);
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTIndexEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//

#import <Foundation/Foundation.h>
#include "git2/index.h"
#include <git2/index.h>
#import "GTObject.h"

@class GTIndex;
Expand Down
3 changes: 2 additions & 1 deletion ObjectiveGit/GTNote.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/oid.h"
#import <git2/types.h>
#import <git2/oid.h>

@class GTSignature;
@class GTRepository;
Expand Down
4 changes: 2 additions & 2 deletions ObjectiveGit/GTOID.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "git2/oid.h"
#import "GTObject.h"
#import <git2/oid.h>
#import <ObjectiveGit/GTObject.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
3 changes: 2 additions & 1 deletion ObjectiveGit/GTOID.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#import "git2/errors.h"
#import "git2/odb.h"
#import "git2/deprecated.h"

@interface GTOID () {
git_oid _git_oid;
Expand Down Expand Up @@ -98,7 +99,7 @@ + (instancetype)oidWithSHACString:(const char *)SHA {
}

- (BOOL)isZero {
return git_oid_iszero(self.git_oid) != 0;
return git_oid_is_zero(self.git_oid) != 0;
}

#pragma mark NSObject
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/types.h"
#import <git2/types.h>

typedef NS_ENUM(int, GTObjectType) {
GTObjectTypeAny = GIT_OBJECT_ANY, /**< Object can be any of the following */
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTReference.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//

#import "GTObject.h"
#import "git2/oid.h"
#import <git2/oid.h>

@class GTOID;
@class GTReflog;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTReference.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#import "GTRepository+References.h"

#import "git2/errors.h"
#import "git2/deprecated.h"

@interface GTReference ()
@property (nonatomic, readonly, assign) git_reference *git_reference;
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTReflogEntry+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "GTReflogEntry.h"
#import "git2/types.h"
#import <git2/types.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTRemote.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "git2/remote.h"
#import <git2/remote.h>

@class GTRepository;
@class GTOID;
Expand Down
1 change: 1 addition & 0 deletions ObjectiveGit/GTRemote.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "EXTScope.h"

#import "git2/errors.h"
#import "git2/deprecated.h"

NSString * const GTRemoteRenameProblematicRefSpecs = @"GTRemoteRenameProblematicRefSpecs";

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTRepository+Blame.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#import "GTRepository.h"

#import "git2/blame.h"
#import <git2/blame.h>

@class GTBlame;

Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTRepository+Merging.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "GTRepository.h"
#import "GTIndexEntry.h"
#import "git2/merge.h"
#import <git2/merge.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Loading
Loading