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

29 files changed

+92
-32
lines changed

ApplicationController.m

+2
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

+2-2
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

+12
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

+2-8
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

+3-1
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

+10
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

-3
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

+12
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

+9-5
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

+2-2
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;

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
- (void)setFeedURL:(NSURL *)feedURL;
3737
- (NSURL *)feedURL;
3838

39+
- (void)setSendsSystemProfile:(BOOL)sendsSystemProfile;
40+
- (BOOL)sendsSystemProfile;
41+
42+
- (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyDownloadsUpdates;
43+
- (BOOL)automaticallyDownloadsUpdates;
44+
3945
// This IBAction is meant for a main menu item. Hook up any menu item to this action,
4046
// and Sparkle will check for updates and report back its findings verbosely.
4147
- (IBAction)checkForUpdates:sender;
@@ -45,11 +51,14 @@
4551
// update is found, it will be downloaded and prepped for installation.
4652
- (void)checkForUpdatesInBackground;
4753

54+
// Date of last update check. Returns null if no check has been performed.
55+
- (NSDate*)lastUpdateCheckDate;
56+
4857
// This begins a "probing" check for updates which will not actually offer to update to that version. The delegate methods, though,
4958
// (up to updater:didFindValidUpdate: and updaterDidNotFindUpdate:), are called, so you can use that information in your UI.
5059
- (void)checkForUpdateInformation;
5160

52-
// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks.
61+
// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks. This call does not change the date of the next check, but only the internal NSTimer.
5362
- (void)resetUpdateCycle;
5463

5564
- (BOOL)updateInProgress;

Sparkle.framework/Versions/A/Resources/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.5 Beta 5</string>
18+
<string>1.5 Beta 6</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>282</string>
22+
<string>313</string>
2323
</dict>
2424
</plist>
Binary file not shown.

Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib

+2-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

Sparkle.framework/Versions/A/Sparkle

9.82 KB
Binary file not shown.

UpdateKey.pem

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MIIDOjCCAi0GByqGSM44BAEwggIgAoIBAQCHqXl7R4gxSzQbs9Rx2aah2Gv2MbU9
3+
b32EboHrtPu3Exm3xXlqL9V0OafZjAjnAUOVPa8VprWcF3j/OWk6R6KGLM3ThUUz
4+
4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