Skip to content

Commit 0578665

Browse files
committed
Use [at] class in headers, and #import in implementations.
1 parent fa3cee3 commit 0578665

Some content is hidden

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

45 files changed

+79
-69
lines changed

Classes/Controllers/PBGitHistoryController.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
//
88

99
#import <Cocoa/Cocoa.h>
10-
#import "PBGitCommit.h"
11-
#import "PBGitTree.h"
1210
#import "PBViewController.h"
13-
#import "PBCollapsibleSplitView.h"
11+
12+
@class PBGitCommit;
13+
@class PBGitTree;
14+
@class PBCollapsibleSplitView;
1415

1516
@class PBGitSidebarController;
1617
@class PBWebHistoryController;

Classes/Controllers/PBGitHistoryController.m

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
// Copyright 2008 __MyCompanyName__. All rights reserved.
77
//
88

9+
#import "PBGitSHA.h"
10+
#import "PBGitCommit.h"
11+
#import "PBGitTree.h"
12+
#import "PBGitRef.h"
13+
#import "PBGitHistoryList.h"
14+
#import "PBGitRevSpecifier.h"
15+
#import "PBCollapsibleSplitView.h"
916
#import "PBGitHistoryController.h"
1017
#import "PBWebHistoryController.h"
1118
#import "CWQuickLook.h"

Classes/Controllers/PBGitSidebarController.m

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#import "NSOutlineViewExt.h"
1616
#import "PBAddRemoteSheet.h"
1717
#import "PBGitDefaults.h"
18+
#import "PBGitSubmodule.h"
1819
#import "PBHistorySearchController.h"
1920

2021
@interface PBGitSidebarController ()

Classes/Controllers/PBHistorySearchController.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
// Copyright 2010 Nathan Kinsinger. All rights reserved.
77
//
88

9+
#import <QuartzCore/CoreAnimation.h>
10+
911
#import "PBHistorySearchController.h"
1012
#import "PBGitHistoryController.h"
1113
#import "PBGitRepository.h"
1214
#import "PBGitDefaults.h"
1315
#import "PBCommitList.h"
1416
#import "PBEasyPipe.h"
1517
#import "PBGitBinary.h"
16-
17-
#import <QuartzCore/CoreAnimation.h>
18-
18+
#import "PBGitCommit.h"
19+
#import "PBGitSHA.h"
1920

2021
@interface PBHistorySearchController ()
2122

Classes/Controllers/PBRefController.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#import "PBCreateTagSheet.h"
1414
#import "PBGitDefaults.h"
1515
#import "PBDiffWindowController.h"
16-
17-
#import <ObjectiveGit/ObjectiveGit.h>
16+
#import "PBGitRevSpecifier.h"
1817

1918
#define kDialogAcceptDroppedRef @"Accept Dropped Ref"
2019
#define kDialogConfirmPush @"Confirm Push"

Classes/Controllers/PBWebHistoryController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#import "PBWebHistoryController.h"
1010
#import "PBGitDefaults.h"
1111
#import "PBGitSHA.h"
12-
#import <ObjectiveGit/GTConfiguration.h>
12+
#import "PBGitRef.h"
13+
#import "PBGitRevSpecifier.h"
1314

1415
@implementation PBWebHistoryController
1516

Classes/PBCLIProxy.h

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

99
#import <Cocoa/Cocoa.h>
1010

11-
1211
@interface PBCLIProxy : NSObject
1312
{
1413
NSConnection *connection;

Classes/PBChangedFile.h

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

99
#import <Cocoa/Cocoa.h>
10-
#import "PBGitRepository.h"
1110

1211
typedef enum {
1312
NEW,

Classes/PBCommitList.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
#import <Cocoa/Cocoa.h>
1010
#import <WebKit/WebView.h>
11-
#import "PBGitHistoryController.h"
1211

12+
@class PBGitHistoryController;
1313
@class PBWebHistoryController;
14+
@class PBHistorySearchController;
1415

1516
typedef void(^PBFindPanelActionBlock)(id sender);
1617

Classes/Views/GLFileView.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
//
88

99
#import <Cocoa/Cocoa.h>
10-
#import "PBWebController.h"
1110
#import <MGScopeBar/MGScopeBarDelegateProtocol.h>
12-
#import "PBGitCommit.h"
13-
#import "PBGitHistoryController.h"
14-
#import "PBRefContextDelegate.h"
1511

16-
@class PBGitGradientBarView;
12+
#import "PBWebController.h"
13+
14+
@class PBGitHistoryController;
1715

1816
@interface GLFileView : PBWebController <MGScopeBarDelegate> {
1917
IBOutlet PBGitHistoryController* historyController;

Classes/Views/GLFileView.m

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
// Copyright 2010 __MyCompanyName__. All rights reserved.
77
//
88

9-
#import "GLFileView.h"
10-
#import "PBGitGradientBarView.h"
119
#import <MGScopeBar/MGScopeBar.h>
1210

11+
#import "GLFileView.h"
12+
#import "PBGitTree.h"
13+
#import "PBGitSHA.h"
14+
#import "PBGitCommit.h"
15+
#import "PBGitHistoryController.h"
16+
17+
1318
#define GROUP_LABEL @"Label" // string
1419
#define GROUP_SEPARATOR @"HasSeparator" // BOOL as NSNumber
1520
#define GROUP_SELECTION_MODE @"SelectionMode" // MGScopeBarGroupSelectionMode (int) as NSNumber

Classes/Views/GitXTextFieldCell.h

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

99
#import <Cocoa/Cocoa.h>
10-
#import "PBRefContextDelegate.h"
1110

11+
@protocol PBRefContextDelegate;
1212

1313
@interface GitXTextFieldCell : NSTextFieldCell {
1414
IBOutlet id<PBRefContextDelegate> contextMenuDelegate;

Classes/Views/GitXTextFieldCell.m

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#import "GitXTextFieldCell.h"
1010
#import "PBGitCommit.h"
1111
#import "PBRefController.h"
12+
#import "PBRefContextDelegate.h"
1213

1314

1415
@implementation GitXTextFieldCell

Classes/Views/PBCreateTagSheet.m

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#import "PBCreateTagSheet.h"
1010
#import "PBGitRepository.h"
1111
#import "PBGitCommit.h"
12+
#import "PBGitRef.h"
1213
#import "PBGitWindowController.h"
14+
#import "PBGitRevSpecifier.h"
1315

1416
@interface PBCreateTagSheet ()
1517

Classes/Views/PBGitRevisionCell.m

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#import "PBGitRevisionCell.h"
1010
#import "PBGitRef.h"
11+
#import "PBGitSHA.h"
12+
#import "PBGitCommit.h"
13+
#import "PBGitRevSpecifier.h"
1114
#import "RoundedRectangle.h"
1215
#import "GitXTextFieldCell.h"
1316

Classes/Views/PBQLOutlineView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "PBQLOutlineView.h"
10-
10+
#import "PBGitTree.h"
1111

1212
@implementation PBQLOutlineView
1313

Classes/Views/PBRefMenuItem.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
//
88

99
#import "PBRefMenuItem.h"
10-
10+
#import "PBGitRepository.h"
11+
#import "PBGitRevSpecifier.h"
12+
#import "PBGitSHA.h"
1113

1214
@implementation PBRefMenuItem
1315
@synthesize refish;

Classes/git/PBGitCommit.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@
77
//
88

99
#import <Cocoa/Cocoa.h>
10-
#import "PBGitRepository.h"
11-
#import "PBGitTree.h"
12-
#import "PBGitRefish.h"
13-
#import "PBGitSHA.h"
10+
#import "PBGitRefish.h" // for @protocol PBGitRefish
1411

15-
#import <ObjectiveGit/git2/oid.h>
12+
@class PBGitRepository;
13+
@class PBGitTree;
14+
@class PBGitRef;
15+
@class PBGitSHA;
16+
@class PBGraphCellInfo;
1617

1718
extern NSString * const kGitXCommitType;
1819

19-
@class PBGraphCellInfo;
20-
@class GTCommit;
2120

2221
@interface PBGitCommit : NSObject <PBGitRefish>
2322

Classes/git/PBGitCommit.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
// Copyright 2008 __MyCompanyName__. All rights reserved.
77
//
88

9+
#import "PBGitRepository.h"
910
#import "PBGitCommit.h"
11+
#import "PBGitTree.h"
1012
#import "PBGitSHA.h"
13+
#import "PBGitRef.h"
1114
#import "PBGitDefaults.h"
1215

13-
#import <ObjectiveGit/ObjectiveGit.h>
14-
1516
NSString * const kGitXCommitType = @"commit";
1617

1718
@interface PBGitCommit ()

Classes/git/PBGitGrapher.mm

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
// Copyright 2008 __MyCompanyName__. All rights reserved.
77
//
88

9+
#include <vector>
10+
#include <algorithm>
11+
912
#import "PBGraphCellInfo.h"
1013
#import "PBGitGrapher.h"
1114
#import "PBGitCommit.h"
15+
#import "PBGitSHA.h"
1216
#import "PBGitLane.h"
1317
#import "PBGitGraphLine.h"
1418

15-
#import <vector>
16-
#import <git2/oid.h>
17-
#include <algorithm>
18-
1919
using namespace std;
2020
typedef std::vector<PBGitLane *> LaneCollection;
2121

Classes/git/PBGitHistoryList.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#import "PBGitGrapher.h"
1313
#import "PBGitHistoryGrapher.h"
1414
#import "PBGitSHA.h"
15-
16-
15+
#import "PBGitRef.h"
16+
#import "PBGitRevSpecifier.h"
1717

1818
@interface PBGitHistoryList ()
1919

Classes/git/PBGitLane.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Created by Pieter de Bie on 27-08-08.
66
// Copyright 2008 __MyCompanyName__. All rights reserved.
77
//
8+
89
#import <Cocoa/Cocoa.h>
9-
#include <git2/oid.h>
1010

1111
class PBGitLane {
1212
static int s_colorIndex;

Classes/git/PBGitRef.h

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import <Cocoa/Cocoa.h>
1010
#import "PBGitRefish.h"
1111

12-
1312
extern NSString * const kGitXTagType;
1413
extern NSString * const kGitXBranchType;
1514
extern NSString * const kGitXRemoteType;

Classes/git/PBGitRepository.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
//
88

99
#import <Cocoa/Cocoa.h>
10-
#import "PBGitHistoryList.h"
11-
#import "PBGitRevSpecifier.h"
12-
#import "PBGitRefish.h"
1310

11+
@class PBGitHistoryList;
12+
@class PBGitRevSpecifier;
13+
@protocol PBGitRefish;
14+
@class PBGitRef;
1415
@class GTRepository;
1516
@class GTConfiguration;
1617

Classes/git/PBGitRepository.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
#import "PBGitRepositoryWatcher.h"
2424
#import "GitRepoFinder.h"
2525
#import "PBGitSubmodule.h"
26+
#import "PBGitHistoryList.h"
27+
#import "PBGitSHA.h"
2628

27-
#import <ObjectiveGit/GTRepository.h>
28-
#import <ObjectiveGit/GTIndex.h>
29-
#import <ObjectiveGit/GTConfiguration.h>
3029

3130
NSString *PBGitRepositoryDocumentType = @"Git Repository";
3231

Classes/git/PBGitRepositoryWatcher.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010

1111
#import <Foundation/Foundation.h>
12-
#import "PBGitRepository.h"
12+
@class PBGitRepository;
1313

1414
typedef UInt32 PBGitRepositoryWatcherEventType;
1515
enum {

Classes/git/PBGitRepositoryWatcher.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
// Copyright 2009 __MyCompanyName__. All rights reserved.
77
//
88
#import <CoreServices/CoreServices.h>
9+
910
#import "PBGitRepositoryWatcher.h"
11+
#import "PBGitRepository.h"
1012
#import "PBEasyPipe.h"
1113
#import "PBGitDefaults.h"
1214
#import "PBGitRepositoryWatcherEventPath.h"
1315

14-
#import <ObjectiveGit/ObjectiveGit.h>
15-
1616
NSString *PBGitRepositoryEventNotification = @"PBGitRepositoryModifiedNotification";
1717
NSString *kPBGitRepositoryEventTypeUserInfoKey = @"kPBGitRepositoryEventTypeUserInfoKey";
1818
NSString *kPBGitRepositoryEventPathsUserInfoKey = @"kPBGitRepositoryEventPathsUserInfoKey";
1919

20-
2120
@interface PBGitRepositoryWatcher ()
2221

2322
@property (nonatomic, strong) NSMutableDictionary *statusCache;

Classes/git/PBGitRevSpecifier.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Cocoa/Cocoa.h>
10-
#import "PBGitRef.h"
10+
@class PBGitRef;
1111

1212
@interface PBGitRevSpecifier : NSObject <NSCopying> {
1313
NSString *description;

Classes/git/PBGitRevSpecifier.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "PBGitRevSpecifier.h"
10-
10+
#import "PBGitRef.h"
1111

1212
@implementation PBGitRevSpecifier
1313

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

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

99
#import "PBGitSHA.h"
1010

11-
#import <git2/errors.h>
12-
1311
@interface PBGitSHA ()
1412

1513
@property (nonatomic, assign) git_oid oid;

Classes/git/PBGitSVBranchItem.h

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import <Cocoa/Cocoa.h>
1010
#import "PBSourceViewItem.h"
1111

12-
1312
@interface PBGitSVBranchItem : PBSourceViewItem {
1413

1514
}

Classes/git/PBGitSVFolderItem.h

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import <Cocoa/Cocoa.h>
1010
#import "PBSourceViewItem.h"
1111

12-
1312
@interface PBGitSVFolderItem : PBSourceViewItem {
1413

1514
}

0 commit comments

Comments
 (0)