{"thread":{"id":"57304","subject":"[GSoC] Add –no-sort option for git-for-each-ref","startedAt":"2022-01-25T10:03:47Z","lastAt":"2022-02-01T06:01:37Z","messageCount":4,"participants":["Shaoxuan Yuan","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"446835","messageId":"CAJyCBOQDBMcowKZgMp2iCbWpaMJGxNH9EtbQ8e0zB67k1g9uYg@mail.gmail.com","threadId":"57304","inReplyTo":null,"subject":"[GSoC] Add –no-sort option for git-for-each-ref","fromName":"Shaoxuan Yuan","fromEmail":"shaoxuan.yuan02@gmail.com","sentAt":"2022-01-25T09:59:24Z","receivedAt":"2022-01-25T10:03:47Z","isPatch":false,"sender":{"key":"shaoxuan.yuan02@gmail.com","avatar":"https://avatars.githubusercontent.com/u/46557895?v=4"},"body":"Hi git community,\n\nI'm considering if this microproject\n[https://git.github.io/Outreachy-23-Microprojects/#add-no-sort-option-for-git-for-each-ref]\n is a good option for now. I want to spend some time on it and see if\nI can come up with something.\n\nSincerely.\nShaoxuan\n"},{"id":"447389","messageId":"CAJyCBOTpmKCHaYEvNc1-r_Rs2OWMsyCO7P6iSeM78QcjjcPuHQ@mail.gmail.com","threadId":"57304","inReplyTo":"CAJyCBOQDBMcowKZgMp2iCbWpaMJGxNH9EtbQ8e0zB67k1g9uYg@mail.gmail.com","subject":"Re: [GSoC] Add –no-sort option for git-for-each-ref","fromName":"Shaoxuan Yuan","fromEmail":"shaoxuan.yuan02@gmail.com","sentAt":"2022-02-01T03:23:17Z","receivedAt":"2022-02-01T03:23:30Z","isPatch":false,"sender":{"key":"shaoxuan.yuan02@gmail.com","avatar":"https://avatars.githubusercontent.com/u/46557895?v=4"},"body":"On Tue, Jan 25, 2022 at 5:59 PM Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> wrote:\n>\n> Hi git community,\n>\n> I'm considering if this microproject\n> [https://git.github.io/Outreachy-23-Microprojects/#add-no-sort-option-for-git-for-each-ref]\n>  is a good option for now. I want to spend some time on it and see if\n> I can come up with something.\n>\n> Sincerely.\n> Shaoxuan\n\nHi git community,\n\nNot sure if this message is overlooked, but I'm writing to see if this\nmicroproject is\nstill (valid to do | worth doing) for now.\n\nThanks,\nShaoxuan\n"},{"id":"447395","messageId":"xmqqzgnbf8w6.fsf@gitster.g","threadId":"57304","inReplyTo":"CAJyCBOTpmKCHaYEvNc1-r_Rs2OWMsyCO7P6iSeM78QcjjcPuHQ@mail.gmail.com","subject":"Re: [GSoC] Add –no-sort option for git-for-each-ref","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-02-01T05:33:45Z","receivedAt":"2022-02-01T05:33:49Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> writes:\n\n> On Tue, Jan 25, 2022 at 5:59 PM Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> wrote:\n>>\n>> Hi git community,\n>>\n>> I'm considering if this microproject\n>> [https://git.github.io/Outreachy-23-Microprojects/#add-no-sort-option-for-git-for-each-ref]\n>>  is a good option for now. I want to spend some time on it and see if\n>> I can come up with something.\n\nI am fairly negative on that entry in the micro-project list (no, it\nis not your fault), because\n\n (1) the one that is described there is fairly useless and I do not\n     think we want to take in my tree at all.\n\n (2) a variant that is any useful would be a bit too large for a\n     micro-project\n\nAs the explanatory text there says, the code should be able to\nfigure out when it does not need to make an extra ref_array_sort()\ncall, without being told by the user.\n\nA smaller and more appropriate \"add --no-sort and when it is given,\nskip the call to ref_array_sort()\" is much easier to do, but it is\nvery much useless.\n\nIf we were to spend any project resources (both developer's time and\nreviewers' time), I'd rather not to see such an option added---once\nwe add a feature, we'd have to maintain it.  Rather, it would be\nmuch better use of our time to do \"automatically figure out when we\ndo not have to sort\", and with that feature, nobody needs to use the\n\"--no-sort\" option at all.\n\nSuch an \"automatically skip the call to ref_array_sort()\" would be\ndoable by a developer who may be relatively unfamiliar with our\ncodebase, but is still a bit too large for a micro-project, which I\nexpect anybody to be able to code during a lunch break and spend\nmore time on review exchanges on the list.\n"},{"id":"447396","messageId":"CAJyCBOQKyoGgo1aPfZbZ04svk0CM=aLGj=ZOBbks5-DH1RyiYQ@mail.gmail.com","threadId":"57304","inReplyTo":"xmqqzgnbf8w6.fsf@gitster.g","subject":"Re: [GSoC] Add –no-sort option for git-for-each-ref","fromName":"Shaoxuan Yuan","fromEmail":"shaoxuan.yuan02@gmail.com","sentAt":"2022-02-01T06:01:21Z","receivedAt":"2022-02-01T06:01:37Z","isPatch":false,"sender":{"key":"shaoxuan.yuan02@gmail.com","avatar":"https://avatars.githubusercontent.com/u/46557895?v=4"},"body":"On Tue, Feb 1, 2022 at 1:33 PM Junio C Hamano <gitster@pobox.com> wrote:\n>\n> Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> writes:\n>\n> > On Tue, Jan 25, 2022 at 5:59 PM Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> wrote:\n> >>\n> >> Hi git community,\n> >>\n> >> I'm considering if this microproject\n> >> [https://git.github.io/Outreachy-23-Microprojects/#add-no-sort-option-for-git-for-each-ref]\n> >>  is a good option for now. I want to spend some time on it and see if\n> >> I can come up with something.\n>\n> I am fairly negative on that entry in the micro-project list (no, it\n> is not your fault), because\n>\n>  (1) the one that is described there is fairly useless and I do not\n>      think we want to take in my tree at all.\n>\n>  (2) a variant that is any useful would be a bit too large for a\n>      micro-project\n>\n> As the explanatory text there says, the code should be able to\n> figure out when it does not need to make an extra ref_array_sort()\n> call, without being told by the user.\n>\n> A smaller and more appropriate \"add --no-sort and when it is given,\n> skip the call to ref_array_sort()\" is much easier to do, but it is\n> very much useless.\n>\n> If we were to spend any project resources (both developer's time and\n> reviewers' time), I'd rather not to see such an option added---once\n> we add a feature, we'd have to maintain it.  Rather, it would be\n> much better use of our time to do \"automatically figure out when we\n> do not have to sort\", and with that feature, nobody needs to use the\n> \"--no-sort\" option at all.\n>\n> Such an \"automatically skip the call to ref_array_sort()\" would be\n> doable by a developer who may be relatively unfamiliar with our\n> codebase, but is still a bit too large for a micro-project, which I\n> expect anybody to be able to code during a lunch break and spend\n> more time on review exchanges on the list.\n\nHi Junio,\n\nThanks for the reply. Understood.\n\nSincerely,\nShaoxuan\n"}]}