Use --topo-order when asking for commits

This fixes a bug where for example the Git.git repository
did not display correctly, as some commits were emitted before
their parents
This commit is contained in:
Pieter de Bie
2008-08-28 20:34:09 +02:00
parent d21926e213
commit 63341f93cf
+1 -1
View File
@@ -57,7 +57,7 @@
NSMutableArray * newArray = [NSMutableArray array];
NSDate* start = [NSDate date];
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"log", @"--pretty=format:%H\01%an\01%s\01%P\01%at", currentRef, nil]];
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"log", @"--topo-order", @"--pretty=format:%H\01%an\01%s\01%P\01%at", currentRef, nil]];
int fd = [handle fileDescriptor];
FILE* f = fdopen(fd, "r");