{"thread":{"id":"983","subject":"[PATCH 3/7] Fixes problem with --merge-order head ^head","startedAt":"2005-06-20T02:29:31Z","lastAt":"2005-06-20T02:29:31Z","messageCount":1,"participants":["Jon Seymour"],"isPatch":true,"patchVersion":1,"patchTotal":7},"messages":[{"id":"5059","messageId":"20050620022931.28578.qmail@blackcubes.dyndns.org","threadId":"983","inReplyTo":null,"subject":"[PATCH 3/7] Fixes problem with --merge-order head ^head","fromName":"Jon Seymour","fromEmail":"jon.seymour@gmail.com","sentAt":"2005-06-20T02:29:31Z","receivedAt":"2005-06-20T02:29:31Z","isPatch":true,"sender":{"key":"jon.seymour@gmail.com","avatar":"https://avatars.githubusercontent.com/u/207131?v=4"},"body":"\ngit-rev-list --merge-order HEAD ^HEAD was faulting rather than generating an empty output.\n\nThis patch fixes that problem.\n\nSigned-off-by: Jon Seymour <jon.seymour@gmail.com>\n---\n\n epoch.c |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/epoch.c b/epoch.c\n--- a/epoch.c\n+++ b/epoch.c\n@@ -606,7 +606,9 @@ int sort_list_in_merge_order(struct comm\n \t\t}\n \t}\n \n-\tif (!reversed->next) {\n+\tif (!reversed)\n+\t\treturn ret;\n+\telse if (!reversed->next) {\n \t\t/*\n \t\t * If there is only one element in the list, we can sort it\n \t\t * using sort_in_merge_order.\n------------\n"}]}