Re: [PATCH] rust: sort includes in bindings_helper.h
From: Alice Ryhl
Date: Fri Aug 09 2024 - 09:16:44 EST
On Fri, Aug 9, 2024 at 3:07 PM Jens Axboe <axboe@xxxxxxxxx> wrote:
>
> On 8/9/24 12:42 AM, Alice Ryhl wrote:
> > Dash has ascii value 45 and underscore has ascii value 95, so to
> > correctly sort the includes, the underscore should be last.
>
> This commit message lacks an explanation for why the change is
> being done. Yes it states that it brings the headers in ascii
> sort order, but WHY?
I can add the following to the commit message:
The headers in this file are sorted alphabetically, which makes it
easy to quickly resolve conflicts by selecting all of the headers and
invoking :'<,'>sort to sort them. To keep this technique to resolve
conflicts working, also apply sorting to symbols that are not letters.
Alice