Skip to content

Commit 98920bf

Browse files
committed
Merge remote branch 'refs/remotes/dgrijalva/stable' into experimental
Conflicts: ApplicationController.m GitX.xcodeproj/project.pbxproj PBGitCommitView.xib PBGitHistoryView.xib PBGitRevisionCell.m PBGitTree.m PBGitWindowController.m PBViewController.m html/views/history/history.js html/views/history/index.html
2 parents 096a176 + 6e06e4b commit 98920bf

File tree

29 files changed

+92
-32
lines changed

29 files changed

+92
-32
lines changed

ApplicationController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#import "PBNSURLPathUserDefaultsTransfomer.h"
1818
#import "PBGitDefaults.h"
1919
#import "PBCloneRepositoryPanel.h"
20+
#import "Sparkle/SUUpdater.h"
2021

2122
@implementation ApplicationController
2223
@synthesize cliProxy;
@@ -65,6 +66,7 @@ - (void)registerServices
6566

6667
- (void)applicationDidFinishLaunching:(NSNotification*)notification
6768
{
69+
[[SUUpdater sharedUpdater] setSendsSystemProfile:YES];
6870
[self registerServices];
6971

7072
BOOL hasOpenedDocuments = NO;

DBPrefsWindowController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ - (void)windowDidLoad
7474
// Create a new window to display the preference views.
7575
// If the developer attached a window to this controller
7676
// in Interface Builder, it gets replaced with this one.
77-
NSWindow *window = [[[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,1000,1000)
77+
NSPanel *panel = [[[NSPanel alloc] initWithContentRect:NSMakeRect(0,0,1000,1000)
7878
styleMask:(NSTitledWindowMask |
7979
NSClosableWindowMask |
8080
NSMiniaturizableWindowMask)
8181
backing:NSBackingStoreBuffered
8282
defer:YES] autorelease];
83-
[self setWindow:window];
83+
[self setWindow:panel];
8484
contentSubview = [[[NSView alloc] initWithFrame:[[[self window] contentView] frame]] autorelease];
8585
[contentSubview setAutoresizingMask:(NSViewMinYMargin | NSViewWidthSizable)];
8686
[[[self window] contentView] addSubview:contentSubview];

Documentation/ReleaseNotes/v0.7.1.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
v0.7.1
2+
===
3+
4+
This is a maintenance release. The following bugs have been fixed:
5+
6+
* The Tree View now tries to be smart about displaying binaries (Johannes)
7+
* GitX now correctly tries to require git v1.6.0 or higher (Pieter)
8+
* Amending commits if the author name has UTF-8 multi-byte characters now correctly works (Pieter)
9+
* GitX no longer stalls for large periods when refreshing in the commit view (Johannes, Pieter)
10+
* The history view tries to be less crashy when loading commits
11+
12+
In addition, the Sparkle framework has been updated so that future updates will be signed

GitX.xcodeproj/project.pbxproj

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@
408408
F5E92A220E88569500056E75 /* new_file.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = new_file.png; path = Images/new_file.png; sourceTree = "<group>"; };
409409
F5EF8C8C0E9D4A5D0050906B /* PBWebController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBWebController.h; sourceTree = "<group>"; };
410410
F5EF8C8D0E9D4A5D0050906B /* PBWebController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBWebController.m; sourceTree = "<group>"; };
411+
F5F7D0641062E7940072C81C /* UpdateKey.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = UpdateKey.pem; sourceTree = "<group>"; };
411412
F5FC41F20EBCBD4300191D80 /* PBGitXProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBGitXProtocol.h; sourceTree = "<group>"; };
412413
F5FC41F30EBCBD4300191D80 /* PBGitXProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitXProtocol.m; sourceTree = "<group>"; };
413414
F5FC43C30EBD050800191D80 /* PBRefContextDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBRefContextDelegate.h; sourceTree = "<group>"; };
@@ -557,6 +558,7 @@
557558
29B97317FDCFA39411CA2CEA /* Resources */ = {
558559
isa = PBXGroup;
559560
children = (
561+
F5F7D0641062E7940072C81C /* UpdateKey.pem */,
560562
F50A41130EBB872D00208746 /* Widgets */,
561563
47DBDB920E94F47200671A1E /* Preference Icons */,
562564
D26DC6440E782C9000C777B2 /* gitx.icns */,
@@ -960,7 +962,6 @@
960962
isa = PBXNativeTarget;
961963
buildConfigurationList = F5886A150ED5D33E0066E74C /* Build configuration list for PBXNativeTarget "SpeedTest" */;
962964
buildPhases = (
963-
F5886A0C0ED5D33D0066E74C /* Resources */,
964965
F5886A0D0ED5D33D0066E74C /* Sources */,
965966
F5886A0E0ED5D33D0066E74C /* Frameworks */,
966967
);
@@ -1050,13 +1051,6 @@
10501051
);
10511052
runOnlyForDeploymentPostprocessing = 0;
10521053
};
1053-
F5886A0C0ED5D33D0066E74C /* Resources */ = {
1054-
isa = PBXResourcesBuildPhase;
1055-
buildActionMask = 2147483647;
1056-
files = (
1057-
);
1058-
runOnlyForDeploymentPostprocessing = 0;
1059-
};
10601054
/* End PBXResourcesBuildPhase section */
10611055

10621056
/* Begin PBXShellScriptBuildPhase section */

Info.plist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>SUPublicDSAKeyFile</key>
6+
<string>UpdateKey.pem</string>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>English</string>
79
<key>CFBundleName</key>
@@ -49,7 +51,7 @@
4951
<key>CFBundleSignature</key>
5052
<string>????</string>
5153
<key>CFBundleVersion</key>
52-
<string>LONG_VERSION</string>
54+
<string>SHORT_VERSION</string>
5355
<key>CFBundleGitVersion</key>
5456
<string>GIT_VERSION</string>
5557
<key>CFBundleShortVersionString</key>

PBGitHistoryController.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ - (void) updateView
349349
[self updateKeys];
350350
}
351351

352+
- (void)viewLoaded
353+
{
354+
float position = [[NSUserDefaults standardUserDefaults] floatForKey:@"PBGitSplitViewPosition"];
355+
if (position)
356+
[historySplitView setPosition:position ofDividerAtIndex:0];
357+
}
358+
352359
- (NSResponder *)firstResponder;
353360
{
354361
return commitList;
@@ -403,6 +410,9 @@ - (BOOL) hasNonlinearPath
403410

404411
- (void) removeView
405412
{
413+
float position = [[[historySplitView subviews] objectAtIndex:0] frame].size.height;
414+
[[NSUserDefaults standardUserDefaults] setFloat:position forKey:@"PBGitSplitViewPosition"];
415+
[[NSUserDefaults standardUserDefaults] synchronize];
406416
[webView close];
407417
[commitController removeObserver:self forKeyPath:@"selection"];
408418
[treeController removeObserver:self forKeyPath:@"selection"];

PBGitTree.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,6 @@ - (NSArray*) children
216216

217217
NSString* p = [handle readLine];
218218
while (p.length > 0) {
219-
if ([p isEqualToString:@"\r"])
220-
break;
221-
222219
BOOL isLeaf = ([p characterAtIndex:p.length - 1] != '/');
223220
if (!isLeaf)
224221
p = [p substringToIndex:p.length -1];

PBViewController.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,20 @@
2323
@property(assign) BOOL isBusy;
2424

2525
- (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller;
26+
27+
/* removeView is called whenever the view is removed, either to be swapped
28+
* with a different view, or when the repository window will be destroyed
29+
*/
2630
- (void) removeView;
31+
32+
/* Updateview is called every time it is loaded into the main view */
2733
- (void) updateView;
34+
35+
/* Called after awakeFromNib:, and the view has been loaded into the main view.
36+
* Useful for resizing stuff after everything has been set in the right position
37+
*/
38+
- (void)viewLoaded;
39+
2840
- (NSResponder *)firstResponder;
2941
- (IBAction) refresh:(id)sender;
3042

PBViewController.m

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,22 @@ - (void) awakeFromNib
3737
{
3838
}
3939

40-
// This is called when the view is displayed again; it
41-
// should be updated to show the most recent information
42-
- (void) updateView
40+
- (NSResponder *)firstResponder;
4341
{
42+
return nil;
4443
}
4544

4645
- (IBAction) refresh: sender
4746
{
4847
}
4948

50-
- (NSResponder *)firstResponder;
49+
// The next methods should be implemented in the subclass if necessary
50+
- (void)updateView
5151
{
52-
return nil;
5352
}
53+
54+
- (void)viewLoaded
55+
{
56+
}
57+
5458
@end

Sparkle.framework/Versions/A/Headers/SUAppcastItem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@interface SUAppcastItem : NSObject {
1313
NSString *title;
1414
NSDate *date;
15-
NSString *description;
15+
NSString *itemDescription;
1616

1717
NSURL *releaseNotesURL;
1818

@@ -33,7 +33,7 @@
3333
- (NSString *)versionString;
3434
- (NSString *)displayVersionString;
3535
- (NSDate *)date;
36-
- (NSString *)description;
36+
- (NSString *)itemDescription;
3737
- (NSURL *)releaseNotesURL;
3838
- (NSURL *)fileURL;
3939
- (NSString *)DSASignature;

0 commit comments

Comments
 (0)