Re: [GSoC][PATCH] commit: warn the usage of reverse_commit_list() helper
- From
Kousik Sanagavarapu <five231003@gmail.com>
- Date
- Feb 8, 2023, 15:53 UTC
- Message-ID
- <20230208155350.186187-1-five231003@gmail.com>
- In-Reply-To
- <230207.86o7q52vxu.gmgdl@evledraar.gmail.com>
On Tue, 7 Feb 2023 at 23:35, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 5 quoted lines
> >[...] > > Having said that, I think the existing version is fine, and we could > just ascribe the issue that prompted this to a one-off mistake :)
I understand it now. Thanks.
Show 7 quoted lines
> I think if you want to pursue this, a much better improvement here would > be to show what the user *should* do. > > E.g. show one code example of using the API in-place, and then the > preferred pattern if one wants to produce a new reversed commit list, > while retaining the original (presumably just copy_commit_list() > followed by reverse_commit_list()).
Following the response by Junio, I think it's better off that I leave it this way?
Thanks, Kousik