<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,6 +28,7 @@
 - (NSManagedObjectContext *)managedObjectContext;
 
 - (IBAction)openPreferencesWindow:(id)sender;
+- (IBAction)showAboutPanel:(id)sender;
 
 - (IBAction)installCliTool:(id)sender;
 </diff>
      <filename>ApplicationController.h</filename>
    </modified>
    <modified>
      <diff>@@ -92,6 +92,20 @@
 	[[PBPrefsWindowController sharedPrefsWindowController] showWindow:nil];
 }
 
+- (IBAction)showAboutPanel:(id)sender
+{
+	NSString *gitversion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@&quot;CFBundleGitVersion&quot;];
+	NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
+	if (gitversion)
+		[dict addEntriesFromDictionary:[[NSDictionary alloc] initWithObjectsAndKeys:gitversion, @&quot;Version&quot;, nil]];
+
+	#ifdef DEBUG_BUILD
+		[dict addEntriesFromDictionary:[[NSDictionary alloc] initWithObjectsAndKeys:@&quot;GitX (DEBUG)&quot;, @&quot;ApplicationName&quot;, nil]];
+	#endif
+
+	[NSApp orderFrontStandardAboutPanelWithOptions:dict];
+}
+
 - (IBAction)installCliTool:(id)sender;
 {
 	BOOL success               = NO;</diff>
      <filename>ApplicationController.m</filename>
    </modified>
    <modified>
      <diff>@@ -886,8 +886,8 @@
 				&lt;/object&gt;
 				&lt;object class=&quot;IBConnectionRecord&quot;&gt;
 					&lt;object class=&quot;IBActionConnection&quot; key=&quot;connection&quot;&gt;
-						&lt;string key=&quot;label&quot;&gt;orderFrontStandardAboutPanel:&lt;/string&gt;
-						&lt;reference key=&quot;source&quot; ref=&quot;519751875&quot;/&gt;
+						&lt;string key=&quot;label&quot;&gt;showAboutPanel:&lt;/string&gt;
+						&lt;reference key=&quot;source&quot; ref=&quot;859235683&quot;/&gt;
 						&lt;reference key=&quot;destination&quot; ref=&quot;1039244063&quot;/&gt;
 					&lt;/object&gt;
 					&lt;int key=&quot;connectionID&quot;&gt;142&lt;/int&gt;
@@ -2278,6 +2278,7 @@
 							&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 							&lt;string&gt;installCliTool:&lt;/string&gt;
 							&lt;string&gt;openPreferencesWindow:&lt;/string&gt;
+							&lt;string&gt;showAboutPanel:&lt;/string&gt;
 							&lt;string&gt;saveAction:&lt;/string&gt;
 							&lt;string&gt;showHelp:&lt;/string&gt;
 						&lt;/object&gt;
@@ -2287,6 +2288,7 @@
 							&lt;string&gt;id&lt;/string&gt;
 							&lt;string&gt;id&lt;/string&gt;
 							&lt;string&gt;id&lt;/string&gt;
+							&lt;string&gt;id&lt;/string&gt;
 						&lt;/object&gt;
 					&lt;/object&gt;
 					&lt;object class=&quot;NSMutableDictionary&quot; key=&quot;outlets&quot;&gt;</diff>
      <filename>English.lproj/MainMenu.xib</filename>
    </modified>
    <modified>
      <diff>@@ -767,7 +767,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = &quot;export PATH=$PATH:$HOME/bin:$HOME/local/bin:/sw/bin:/opt/local/bin:`\&quot;$TARGET_BUILD_DIR\&quot;/gitx --git-path`\nVERSION=$(cd \&quot;$PROJECT_DIR\&quot;;git describe)\nLONG_VERSION=$(echo $VERSION | sed -e \&quot;s/\\-/\\./\&quot; -e \&quot;s/^v//\&quot; -e \&quot;s/-.*//\&quot;)\nSHORT_VERSION=$(echo $VERSION | sed -e \&quot;s/\\-.*//\&quot; -e \&quot;s/^v//\&quot;)\n\necho -n \&quot;#define LONG_VERSION $LONG_VERSION\n#define SHORT_VERSION $SHORT_VERSION\&quot; &gt; \&quot;$PROJECT_TEMP_DIR/revision\&quot;\ntouch Info.plist&quot;;
+			shellScript = &quot;export PATH=$PATH:$HOME/bin:$HOME/local/bin:/sw/bin:/opt/local/bin:`\&quot;$TARGET_BUILD_DIR\&quot;/gitx --git-path`\nVERSION=$(cd \&quot;$PROJECT_DIR\&quot;;git describe)\nLONG_VERSION=$(echo $VERSION | sed -e \&quot;s/\\-/\\./\&quot; -e \&quot;s/^v//\&quot; -e \&quot;s/-.*//\&quot;)\nSHORT_VERSION=$(echo $VERSION | sed -e \&quot;s/\\-.*//\&quot; -e \&quot;s/^v//\&quot;)\n\necho -n \&quot;#define LONG_VERSION $LONG_VERSION\n#define GIT_VERSION $VERSION\n#define SHORT_VERSION $SHORT_VERSION\&quot; &gt; \&quot;$PROJECT_TEMP_DIR/revision\&quot;\ntouch Info.plist&quot;;
 		};
 		F5792DFB0EDB570C001B0C31 /* Compile libgit2 */ = {
 			isa = PBXShellScriptBuildPhase;
@@ -985,7 +985,7 @@
 				HEADER_SEARCH_PATHS = libgit2/src;
 				INFOPLIST_FILE = Info.plist;
 				INFOPLIST_OTHER_PREPROCESSOR_FLAGS = &quot;-traditional&quot;;
-				INFOPLIST_PREFIX_HEADER = build/revision;
+				INFOPLIST_PREFIX_HEADER = $PROJECT_TEMP_DIR/revision;
 				INFOPLIST_PREPROCESS = YES;
 				INSTALL_PATH = &quot;$(HOME)/Applications&quot;;
 				LIBRARY_SEARCH_PATHS = libgit2;
@@ -1001,6 +1001,7 @@
 				GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = DEBUG_BUILD;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
+				INFOPLIST_PREPROCESS = YES;
 				PREBINDING = NO;
 				SDKROOT = &quot;$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk&quot;;
 			};
@@ -1016,6 +1017,8 @@
 				GCC_ENABLE_OBJC_GC = required;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
+				INFOPLIST_PREFIX_HEADER = $PROJECT_TEMP_DIR/revision;
+				INFOPLIST_PREPROCESS = YES;
 				PREBINDING = NO;
 				SDKROOT = &quot;$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk&quot;;
 			};
@@ -1084,6 +1087,7 @@
 				COPY_PHASE_STRIP = YES;
 				DEBUG_INFORMATION_FORMAT = &quot;dwarf-with-dsym&quot;;
 				GCC_ENABLE_FIX_AND_CONTINUE = NO;
+				INFOPLIST_PREPROCESS = YES;
 				PRODUCT_NAME = &quot;Generate PList Prefix&quot;;
 				ZERO_LINK = NO;
 			};</diff>
      <filename>GitX.xcodeproj/project.pbxproj</filename>
    </modified>
    <modified>
      <diff>@@ -50,6 +50,8 @@
 	&lt;string&gt;????&lt;/string&gt;
 	&lt;key&gt;CFBundleVersion&lt;/key&gt;
 	&lt;string&gt;LONG_VERSION&lt;/string&gt;
+	&lt;key&gt;CFBundleGitVersion&lt;/key&gt;
+	&lt;string&gt;GIT_VERSION&lt;/string&gt;
 	&lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
 	&lt;string&gt;SHORT_VERSION&lt;/string&gt;
 	&lt;key&gt;NSMainNibFile&lt;/key&gt;</diff>
      <filename>Info.plist</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8cdb2e6c9d840ef4d2b33091f44564456ee13f07</id>
    </parent>
  </parents>
  <author>
    <name>Johannes Gilger</name>
    <email>heipei@hackvalue.de</email>
  </author>
  <url>http://github.com/pieter/gitx/commit/0b81911d76a819fea58d7c1aba98302cb8703d70</url>
  <id>0b81911d76a819fea58d7c1aba98302cb8703d70</id>
  <committed-date>2009-09-06T04:23:38-07:00</committed-date>
  <authored-date>2009-09-05T04:24:10-07:00</authored-date>
  <message>About-Panel: Show git-describe using Info.plist

This patch adds a CFBundleGitRevision key to Info.plist which is set to
the output of &quot;git describe&quot; when building.

The menu-entry for &quot;About GitX&quot; was reconnected to a custom method in
the AppController, which reads the CF-string from the .plist and also
indicates if the build is a DEBUG-build.

Signed-off-by: Johannes Gilger &lt;heipei@hackvalue.de&gt;</message>
  <tree>9dd91221b7d5944ecf6061a2bc470340d24e7eca</tree>
  <committer>
    <name>Pieter de Bie</name>
    <email>pdebie@ai.rug.nl</email>
  </committer>
</commit>
