Skip to content

Commit 7deb309

Browse files
Merge branch 'refs/heads/experimental' into stashes
Conflicts: GitX.xcodeproj/project.pbxproj PBGitCommitView.xib PBGitHistoryView.xib PBRefController.m
2 parents 27e490c + 9dd29f6 commit 7deb309

File tree

149 files changed

+24337
-561
lines changed

Some content is hidden

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

149 files changed

+24337
-561
lines changed

ApplicationController.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
- (IBAction)installCliTool:(id)sender;
3333

3434
- (IBAction)saveAction:sender;
35-
- (IBAction) showHelp:(id) sender;
35+
- (IBAction)showHelp:(id)sender;
36+
- (IBAction)reportAProblem:(id)sender;
3637

37-
- (IBAction) showCloneRepository:(id)sender;
38+
- (IBAction)showCloneRepository:(id)sender;
3839
@end

ApplicationController.m

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ - (void)registerServices
6464
- (void)applicationDidFinishLaunching:(NSNotification*)notification
6565
{
6666
[[SUUpdater sharedUpdater] setSendsSystemProfile:YES];
67+
[[SUUpdater sharedUpdater] setDelegate:self];
6768

6869
// Make sure Git's SSH password requests get forwarded to our little UI tool:
6970
setenv( "SSH_ASKPASS", [[[NSBundle mainBundle] pathForResource: @"gitx_askpasswd" ofType: @""] UTF8String], 1 );
@@ -196,11 +197,6 @@ - (IBAction)installCliTool:(id)sender;
196197
former cannot be found), the system's temporary directory.
197198
*/
198199

199-
- (IBAction) showHelp:(id) sender
200-
{
201-
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://gitx.frim.nl/user_manual.html"]];
202-
}
203-
204200
- (NSString *)applicationSupportFolder {
205201

206202
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
@@ -380,4 +376,44 @@ - (void) dealloc {
380376
[managedObjectModel release], managedObjectModel = nil;
381377
[super dealloc];
382378
}
379+
380+
381+
#pragma mark Sparkle delegate methods
382+
383+
- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile
384+
{
385+
NSArray *keys = [NSArray arrayWithObjects:@"key", @"displayKey", @"value", @"displayValue", nil];
386+
NSMutableArray *feedParameters = [NSMutableArray array];
387+
388+
// only add parameters if the profile is being sent this time
389+
if (sendingProfile) {
390+
NSString *CFBundleGitVersion = [[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleGitVersion"];
391+
if (CFBundleGitVersion)
392+
[feedParameters addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"CFBundleGitVersion", @"Full Version", CFBundleGitVersion, CFBundleGitVersion, nil]
393+
forKeys:keys]];
394+
395+
NSString *gitVersion = [PBGitBinary version];
396+
if (gitVersion)
397+
[feedParameters addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"gitVersion", @"git Version", gitVersion, gitVersion, nil]
398+
forKeys:keys]];
399+
}
400+
401+
return feedParameters;
402+
}
403+
404+
405+
#pragma mark Help menu
406+
407+
- (IBAction)showHelp:(id)sender
408+
{
409+
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://gitx.frim.nl/user_manual.html"]];
410+
}
411+
412+
- (IBAction)reportAProblem:(id)sender
413+
{
414+
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://gitx.lighthouseapp.com/tickets"]];
415+
}
416+
417+
418+
383419
@end

0 commit comments

Comments
 (0)