Skip to content

Commit a537cd5

Browse files
committed
Merged fork master with pieter/master
2 parents 4e0871c + c95a22a commit a537cd5

40 files changed

+1008
-355
lines changed

ApplicationController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- (NSManagedObjectContext *)managedObjectContext;
2929

3030
- (IBAction)openPreferencesWindow:(id)sender;
31+
- (IBAction)showAboutPanel:(id)sender;
3132

3233
- (IBAction)installCliTool:(id)sender;
3334

ApplicationController.m

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,30 @@ - (void)applicationDidFinishLaunching:(NSNotification*)notification
6868
// Only try to open a default document if there are no documents open already.
6969
// For example, the application might have been launched by double-clicking a .git repository,
7070
// or by dragging a folder to the app icon
71-
if ([[[PBRepositoryDocumentController sharedDocumentController] documents] count] == 0 && [[NSApplication sharedApplication] isActive]) {
72-
// Try to open the current directory as a git repository
73-
NSURL *url = nil;
74-
if([[[NSProcessInfo processInfo] environment] objectForKey:@"PWD"])
75-
url = [NSURL fileURLWithPath:[[[NSProcessInfo processInfo] environment] objectForKey:@"PWD"]];
76-
NSError *error = nil;
77-
if (!url || [[PBRepositoryDocumentController sharedDocumentController] openDocumentWithContentsOfURL:url display:YES error:&error] == NO) {
78-
// The current directory could not be opened (most likely it’s not a git repository)
79-
// so show an open panel for the user to select a repository to view
80-
[[PBRepositoryDocumentController sharedDocumentController] openDocument:self];
81-
}
71+
if ([[[PBRepositoryDocumentController sharedDocumentController] documents] count])
72+
return;
73+
74+
if (![[NSApplication sharedApplication] isActive])
75+
return;
76+
77+
NSURL *url = nil;
78+
79+
// Try to find the current directory, to open that as a repository
80+
if ([PBGitDefaults openCurDirOnLaunch]) {
81+
NSString *curPath = [[[NSProcessInfo processInfo] environment] objectForKey:@"PWD"];
82+
if (curPath)
83+
url = [NSURL fileURLWithPath:curPath];
8284
}
85+
86+
// Try to open the found URL
87+
NSError *error = nil;
88+
if (url && [[PBRepositoryDocumentController sharedDocumentController] openDocumentWithContentsOfURL:url display:YES error:&error])
89+
return;
90+
91+
// The current directory was not enabled or could not be opened (most likely it’s not a git repository).
92+
// show an open panel for the user to select a repository to view
93+
if ([PBGitDefaults showOpenPanelOnLaunch])
94+
[[PBRepositoryDocumentController sharedDocumentController] openDocument:self];
8395
}
8496

8597
- (void) windowWillClose: sender
@@ -92,6 +104,20 @@ - (IBAction)openPreferencesWindow:(id)sender
92104
[[PBPrefsWindowController sharedPrefsWindowController] showWindow:nil];
93105
}
94106

107+
- (IBAction)showAboutPanel:(id)sender
108+
{
109+
NSString *gitversion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleGitVersion"];
110+
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
111+
if (gitversion)
112+
[dict addEntriesFromDictionary:[[NSDictionary alloc] initWithObjectsAndKeys:gitversion, @"Version", nil]];
113+
114+
#ifdef DEBUG_BUILD
115+
[dict addEntriesFromDictionary:[[NSDictionary alloc] initWithObjectsAndKeys:@"GitX (DEBUG)", @"ApplicationName", nil]];
116+
#endif
117+
118+
[NSApp orderFrontStandardAboutPanelWithOptions:dict];
119+
}
120+
95121
- (IBAction)installCliTool:(id)sender;
96122
{
97123
BOOL success = NO;

Documentation/ReleaseNotes/v0.6.2.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ In addition, the following features have been added:
1515
* There is now a 'New…' option to create a new repository
1616
* The 'Gist It' feature now asks for confirmation by default. This can be changed in the preferences
1717
* GitX can now open any directory by dragging it on the icon
18-
* GitX now asks for confirmation before deleting a branch
18+
* GitX now asks for confirmation before deleting a branch
19+

Documentation/ReleaseNotes/v0.6.3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ This is a maintenance release. The following bugs have been fixed:
55

66
* Fixed a problem where GitX could not open some directories, for example those that include a . [Johannes Gilger]
77
* Fixed a performance issue when staging or unstaging a lot of files
8-
* Various buildfixes (Benjamin Kramer, Arjen Laarhoven)
8+
* Various buildfixes (Benjamin Kramer, Arjen Laarhoven)
9+

Documentation/ReleaseNotes/v0.7.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
v0.7
2+
===
3+
4+
As a GitX user, we would like you to help us focus our development by telling
5+
us your wishes. You can help us by filling in this
6+
[survey](http://www.survs.com/survey?id=DCJKLP2B&channel=UY6RRC3MXZ "GitX User survey")!
7+
8+
This feature-release has the following new features and enhancements:
9+
10+
* Line-wise staging by selecting lines from hunks (JD Smith)
11+
* Discarding hunks/changes to files (using git apply --reverse) (Johannes Gilger)
12+
* Show current HEAD in window-title (Johannes Gilger)
13+
* Show current branch in orange in history view (Steven Michalske)
14+
* Collapse commit-list/diff-view using Command-Shift-Up/Down (Johannes Gilger)
15+
* Sign-Off commits in commit view (Johannes Gilger, Nicolas Riley)
16+
* "Show in Finder" for files in commit view (Charles O'Rourke)
17+
* Commit hooks are executed when committing (Joe Fiorini, Pieter de Bie)
18+
* Branches can be deleted from the UI
19+
20+
Small enhancements:
21+
22+
* Option to disable the "Open" dialog on start (Stonewall Ballard)
23+
* Show committer name if it differs from authors name (Benjamin Kramer)
24+
* Columns in history view can be toggled (Pieter de Bie)
25+
* Reuse author-information when amending a commit (Pieter de Bie)
26+
* Commit interface is now faster (Pieter de Bie)
27+
* Use modal alerts where possible
28+
* Don't display content of binary-files in tree-view
29+
* The user manual has been updated for 0.7 (Johannes Gilger)
30+
* Make the Commit UI a bit more informative (Nicholas Riley)
31+
32+
33+
In addition a lot of bugs were fixed and numerous tiny features introduced.
34+
35+
Credits go to: Pieter de Bie, Johannes Gilger, Benjamin Kramer, Nicholas Riley, JD Smith, Joe Fiorini, Dave Grijalva, Charles O'Rourke, Gerd Knops, dbr, Mike Czepiel, Benoit Cerrina, Steven Michalske and Stonewall Ballard

English.lproj/MainMenu.xib

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,8 @@
886886
</object>
887887
<object class="IBConnectionRecord">
888888
<object class="IBActionConnection" key="connection">
889-
<string key="label">orderFrontStandardAboutPanel:</string>
890-
<reference key="source" ref="519751875"/>
889+
<string key="label">showAboutPanel:</string>
890+
<reference key="source" ref="859235683"/>
891891
<reference key="destination" ref="1039244063"/>
892892
</object>
893893
<int key="connectionID">142</int>
@@ -2278,6 +2278,7 @@
22782278
<bool key="EncodedWithXMLCoder">YES</bool>
22792279
<string>installCliTool:</string>
22802280
<string>openPreferencesWindow:</string>
2281+
<string>showAboutPanel:</string>
22812282
<string>saveAction:</string>
22822283
<string>showHelp:</string>
22832284
</object>
@@ -2287,6 +2288,7 @@
22872288
<string>id</string>
22882289
<string>id</string>
22892290
<string>id</string>
2291+
<string>id</string>
22902292
</object>
22912293
</object>
22922294
<object class="NSMutableDictionary" key="outlets">

0 commit comments

Comments
 (0)