{"thread":{"id":"1121","subject":"[PATCH 1/6] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.","startedAt":"2005-07-06T07:51:12Z","lastAt":"2005-07-06T07:51:12Z","messageCount":1,"participants":["Jon Seymour"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"5697","messageId":"20050706075112.3951.qmail@blackcubes.dyndns.org","threadId":"1121","inReplyTo":null,"subject":"[PATCH 1/6] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.","fromName":"Jon Seymour","fromEmail":"jon.seymour@gmail.com","sentAt":"2005-07-06T07:51:12Z","receivedAt":"2005-07-06T07:51:12Z","isPatch":true,"sender":{"key":"jon.seymour@gmail.com","avatar":"https://avatars.githubusercontent.com/u/207131?v=4"},"body":"\nThis patch adds a hacky special case to the rev-list main to restore the order in which\nthe --merge-order sort algorithm receives arguments.\n\nA subsequent patch will abstract this out more cleanly.\n\nSigned-off-by: Jon Seymour <jon.seymour@gmail.com>\n---\n\n rev-list.c |    5 ++++-\n 1 files changed, 4 insertions(+), 1 deletions(-)\n\nc63fe4678d33db15db076606f7a133868e91f1bc\ndiff --git a/rev-list.c b/rev-list.c\n--- a/rev-list.c\n+++ b/rev-list.c\n@@ -482,7 +482,10 @@ int main(int argc, char **argv)\n \t\tcommit = get_commit_reference(arg, flags);\n \t\tif (!commit)\n \t\t\tcontinue;\n-\t\tinsert_by_date(&list, commit);\n+\t\tif (!merge_order) \n+\t\t\tinsert_by_date(&list, commit);\n+\t\telse \n+\t\t\tcommit_list_insert(commit, &list);\n \t}\n \n \tif (!merge_order) {\t\t\n------------\n"}]}