Skip to content

Commit 69e52bc

Browse files
committed
Update to latest upstream objective-git
1 parent 3b33ff1 commit 69e52bc

File tree

10 files changed

+28
-20
lines changed

10 files changed

+28
-20
lines changed

Classes/Controllers/PBRefController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ - (void) showTagInfoSheet:(PBRefMenuItem *)sender
251251
NSError *error = nil;
252252
NSString *tagName = [(PBGitRef *)[sender refish] tagName];
253253
NSString *tagRef = [@"refs/tags/" stringByAppendingString:tagName];
254-
GTObject *object = [historyController.repository.gtRepo lookupObjectByRefspec:tagRef error:&error];
254+
GTObject *object = [historyController.repository.gtRepo lookupObjectByRevParse:tagRef error:&error];
255255
if (!object) {
256256
NSLog(@"Couldn't look up ref %@:%@", tagRef, [error debugDescription]);
257257
return;

Classes/git/PBGitGrapher.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#import "PBGitGraphLine.h"
1414

1515
#import <vector>
16-
#import <git2/oid.h>
16+
1717
#include <algorithm>
1818

1919
using namespace std;

Classes/git/PBGitLane.h

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright 2008 __MyCompanyName__. All rights reserved.
77
//
88
#import <Cocoa/Cocoa.h>
9-
#include <git2/oid.h>
109

1110
class PBGitLane {
1211
static int s_colorIndex;

Classes/git/PBGitRepository.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ - (BOOL) createTag:(NSString *)tagName message:(NSString *)message atRefish:(id
840840

841841
NSError *error = nil;
842842

843-
GTObject *object = [self.gtRepo lookupObjectByRefspec:[target refishName] error:&error];
843+
GTObject *object = [self.gtRepo lookupObjectByRevParse:[target refishName] error:&error];
844844
GTTag *newTag = nil;
845845
if (object && !error) {
846846
newTag = [self.gtRepo createTagNamed:tagName target:object tagger:self.gtRepo.userSignatureForNow message:message error:&error];

Classes/git/PBGitRevList.mm

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#import "PBEasyPipe.h"
1515
#import "PBGitBinary.h"
1616

17-
#include <ObjectiveGit/ObjectiveGit.h>
17+
#import <ObjectiveGit/ObjectiveGit.h>
1818

19-
#include <ext/stdio_filebuf.h>
20-
#include <iostream>
21-
#include <string>
22-
#include <map>
19+
#import <ext/stdio_filebuf.h>
20+
#import <iostream>
21+
#import <string>
22+
#import <map>
2323

2424
using namespace std;
2525

@@ -129,7 +129,7 @@ - (void) setupEnumerator:(GTEnumerator*)enumerator
129129
[enumerator resetWithOptions:GTEnumeratorOptionsTimeSort];
130130
// [enumerator resetWithOptions:GTEnumeratorOptionsTopologicalSort];
131131
if (rev.isSimpleRef) {
132-
GTObject *object = [repo lookupObjectByRefspec:rev.simpleRef error:&error];
132+
GTObject *object = [repo lookupObjectByRevParse:rev.simpleRef error:&error];
133133
if ([object isKindOfClass:[GTCommit class]]) {
134134
[enumerator pushSHA:object.SHA error:&error];
135135
}
@@ -149,7 +149,7 @@ - (void) setupEnumerator:(GTEnumerator*)enumerator
149149
} else if ([param isEqualToString:@"--tags"]) {
150150
for (NSString *ref in allRefs) {
151151
if ([ref hasPrefix:@"refs/tags/"]) {
152-
GTObject *tag = [repo lookupObjectByRefspec:ref error:&error];
152+
GTObject *tag = [repo lookupObjectByRevParse:ref error:&error];
153153
GTCommit *commit = nil;
154154
if ([tag isKindOfClass:[GTCommit class]]) {
155155
commit = (GTCommit *)tag;

Classes/git/PBGitSHA.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//
88

99
#import <Cocoa/Cocoa.h>
10-
#include <git2/oid.h>
11-
1210

1311
@interface PBGitSHA : NSObject <NSCopying>
1412

Classes/git/PBGitSHA.m

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "PBGitSHA.h"
1010

11-
#import <git2/errors.h>
1211

1312
@interface PBGitSHA ()
1413

GitX.xcodeproj/project.pbxproj

+15-2
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,13 @@
301301
remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
302302
remoteInfo = ObjectiveGit;
303303
};
304+
4A74FA8A183E44DD003F7184 /* PBXContainerItemProxy */ = {
305+
isa = PBXContainerItemProxy;
306+
containerPortal = 4A4EF09F142CBAD5001B8CDF /* ObjectiveGitFramework.xcodeproj */;
307+
proxyType = 2;
308+
remoteGlobalIDString = F6CBB4A417FFD50500404926;
309+
remoteInfo = "ObjectiveGit-iOS-arm64";
310+
};
304311
4A774CBC142F464D00E158CC /* PBXContainerItemProxy */ = {
305312
isa = PBXContainerItemProxy;
306313
containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
@@ -789,6 +796,7 @@
789796
4A4EF0AF142CBAD5001B8CDF /* ObjectiveGit.framework */,
790797
4ADAA9C21602ADB8007A0E6F /* ObjectiveGitTests.octest */,
791798
4A4EF0B3142CBAD5001B8CDF /* libObjectiveGit-iOS.a */,
799+
4A74FA8B183E44DD003F7184 /* libObjectiveGit-iOS.a */,
792800
);
793801
name = Products;
794802
sourceTree = "<group>";
@@ -1366,6 +1374,13 @@
13661374
remoteRef = 4A68AD6E14A0050F006DE321 /* PBXContainerItemProxy */;
13671375
sourceTree = BUILT_PRODUCTS_DIR;
13681376
};
1377+
4A74FA8B183E44DD003F7184 /* libObjectiveGit-iOS.a */ = {
1378+
isa = PBXReferenceProxy;
1379+
fileType = archive.ar;
1380+
path = "libObjectiveGit-iOS.a";
1381+
remoteRef = 4A74FA8A183E44DD003F7184 /* PBXContainerItemProxy */;
1382+
sourceTree = BUILT_PRODUCTS_DIR;
1383+
};
13691384
4A8F6B4514A9B6110002F4D7 /* MGScopeBar.app */ = {
13701385
isa = PBXReferenceProxy;
13711386
fileType = wrapper.application;
@@ -1818,7 +1833,6 @@
18181833
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
18191834
GCC_WARN_ABOUT_RETURN_TYPE = YES;
18201835
GCC_WARN_UNUSED_VARIABLE = YES;
1821-
HEADER_SEARCH_PATHS = "\"$(PROJECT_DIR)/objective-git/libgit2/include\"";
18221836
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
18231837
MACOSX_DEPLOYMENT_TARGET = 10.7;
18241838
ONLY_ACTIVE_ARCH = YES;
@@ -1837,7 +1851,6 @@
18371851
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
18381852
GCC_WARN_ABOUT_RETURN_TYPE = YES;
18391853
GCC_WARN_UNUSED_VARIABLE = YES;
1840-
HEADER_SEARCH_PATHS = "\"$(PROJECT_DIR)/objective-git/libgit2/include\"";
18411854
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
18421855
MACOSX_DEPLOYMENT_TARGET = 10.7;
18431856
SDKROOT = macosx;

GitX_Prefix.pch

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
#ifdef __OBJC__
44
#import <Cocoa/Cocoa.h>
5-
#ifndef __cplusplus
6-
#import <ObjectiveGit/ObjectiveGit.h>
7-
#endif
5+
#import <ObjectiveGit/ObjectiveGit.h>
6+
87
#endif
98

109
#define DEPRECATED __attribute__ ((deprecated))

objective-git

Submodule objective-git updated 61 files

0 commit comments

Comments
 (0)