{"thread":{"id":"1142","subject":"[PATCH 1/13] Temporary fixup to rev-list.c to restore expected order of arguments presented to --merge-order sort.","startedAt":"2005-07-06T16:39:34Z","lastAt":"2005-07-06T16:39:34Z","messageCount":1,"participants":["Jon Seymour"],"isPatch":true,"patchVersion":1,"patchTotal":13},"messages":[{"id":"5724","messageId":"20050706163934.9811.qmail@blackcubes.dyndns.org","threadId":"1142","inReplyTo":null,"subject":"[PATCH 1/13] 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-06T16:39:34Z","receivedAt":"2005-07-06T16:39:34Z","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"}]}