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

Re: devscripts: wrap-and-sort should default to -ast



On Tue, Feb 09, 2021 at 08:49:51PM +0100, Thomas Goirand wrote:
> On 2/9/21 7:40 PM, Russ Allbery wrote:
> > Jonas Smedegaard <jonas@jones.dk> writes:
> >> Let's see if Debian can agree on a single normalization of 822-ish
> >> files.  For starters, I disagree that "wrap-and-sort -a" is a suitable
> >> normalization, as that will involve re-indentation when keys change.
> > 
> > I've been using wrap-and-sort -ast on all of my packages for a while, with
> > much the same justification.
> 
> For packages generating a lot of binaries, the -b option is also quite
> useful, don't you think?

As a user of -satb, I'd like to point out that the flags are not all
equal. Two of them support a (more objective?) desire that "addition to
a list in line-based VCS should have no deletions". That is -at, whereas
-s is a subjective prettifier and -b could remove information, hence -k.

To make that work as a default, there would need to be something like an
--short-preferred-unless-existing-indent to prevent constant
reformatting. I disagree with jonas on the importance of -s because I'm
not convinced that field names change, especially not often.

Attachment: signature.asc
Description: PGP signature


Reply to: