qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v8 1/9] qemu-binfmt-conf.sh: enforce safe style consistency


From: Unai Martinez Corral
Subject: Re: [PATCH v8 1/9] qemu-binfmt-conf.sh: enforce safe style consistency
Date: Mon, 9 Mar 2020 19:20:48 +0100

2020/03/09 16:01, Eric Blake:
On 3/7/20 11:22 AM, Unai Martinez-Corral wrote:
> Spaces are added before '; then', for consistency.

For consistency with what?  This is not our prevailing style; as
evidenced by this pre-patch search:

$ git grep 'if \[.*\];' | wc
     274    2186   18170
$ git grep 'if \[.*\] ;' | wc
      25     256    1573

and you are diverging from the dominant pattern.

For consistency within the script that is being modified. I'm not trying to diverge, neither do I prefer any specific style.
Although the style in the current master is not consistent, ' ; ' is significantly more frequent. When I was told to keep consistency in v2, I picked that because it was the most common.
Anyway, I will push a new version where all these are changed to the dominant pattern outside of this script.
 
This part, however, is good.  Since one part is controversial, you may
want to split this into two patches, or even drop the reformatting part.

Since the current master is neither consistent nor coherent with the dominant pattern, I don't think I can drop the reformatting as long as I want to fulfill your requirements.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]