From beaa591b53230c714fe765448edfb77872381cfc Mon Sep 17 00:00:00 2001 From: Nathan Kinsinger Date: Sun, 15 Aug 2010 22:45:42 -0600 Subject: [PATCH] Include the CFBundleGitVersion in the version command of the CLI CFBundleGitVersion has the git description information in it. --- gitx.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitx.m b/gitx.m index eea2892..464a5a0 100644 --- a/gitx.m +++ b/gitx.m @@ -67,7 +67,8 @@ void usage(char const *programName) void version_info() { NSString *version = [[[NSBundle bundleForClass:[PBGitBinary class]] infoDictionary] valueForKey:@"CFBundleVersion"]; - printf("This is GitX version %s\n", [version UTF8String]); + NSString *gitVersion = [[[NSBundle bundleForClass:[PBGitBinary class]] infoDictionary] valueForKey:@"CFBundleGitVersion"]; + printf("GitX version %s (%s)\n", [version UTF8String], [gitVersion UTF8String]); if ([PBGitBinary path]) printf("Using git found at %s, version %s\n", [[PBGitBinary path] UTF8String], [[PBGitBinary version] UTF8String]); else