mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
GitCommit: Add a GitX identifier to the patch output
This is a nice way to track patches that appear on the internets :)
This commit is contained in:
+3
-1
@@ -49,7 +49,9 @@
|
||||
if (_patch != nil)
|
||||
return _patch;
|
||||
|
||||
_patch = [repository outputForArguments:[NSArray arrayWithObjects:@"format-patch", @"-1", @"--stdout", sha, nil]];
|
||||
NSString *p = [repository outputForArguments:[NSArray arrayWithObjects:@"format-patch", @"-1", @"--stdout", sha, nil]];
|
||||
// Add a GitX identifier to the patch ;)
|
||||
_patch = [[p substringToIndex:[p length] -1] stringByAppendingString:@"+GitX"];
|
||||
return _patch;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user