Skip to content

Commit

Permalink
Include the CFBundleGitVersion in the version command of the CLI
Browse files Browse the repository at this point in the history
CFBundleGitVersion has the git description information in it.
  • Loading branch information
brotherbard committed Sep 13, 2010
1 parent 88b2983 commit beaa591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitx.m
Expand Up @@ -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
Expand Down

0 comments on commit beaa591

Please sign in to comment.