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:
Pieter de Bie
2008-10-03 20:49:12 +02:00
parent 70bc282982
commit d4f2b4a120
+3 -1
View File
@@ -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;
}