public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Yumei Huang <yuhuang@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>, passt-dev@passt.top
Subject: Re: [PATCH] Add pyramid style rule to CONTRIBUTING.md
Date: Mon, 27 Oct 2025 11:05:09 +0800	[thread overview]
Message-ID: <CANsz47n-pZSKdBttpFvQ7mBEKw0r-gJ4Qkx6os73msBLo5z3wQ@mail.gmail.com> (raw)
In-Reply-To: <20251023042754.6112f428@elisabeth>

On Thu, Oct 23, 2025 at 10:28 AM Stefano Brivio <sbrivio@redhat.com> wrote:
>
> On Thu, 23 Oct 2025 11:40:10 +1100
> David Gibson <david@gibson.dropbear.id.au> wrote:
>
> > On Wed, Oct 22, 2025 at 12:30:54PM +0800, Yumei Huang wrote:
> > > Also fix the copyright line.
> > >
> > > Suggested-by: Stefano Brivio <sbrivio@redhat.com>
> > > Signed-off-by: Yumei Huang <yuhuang@redhat.com>
> >
> > Stefano, do we actually encourage that style for any "list of similar
> > items"?  Or just for local variable declarations?
>
> Just for local variable declarations, thanks for noticing.
>
> I was rather focusing on the fact (https://lwn.net/Articles/758552/)
> that it's actually called "Reverse Christmas tree", not pyramid style.
>
> I can't find a convenient reference right now, maybe it's hidden
> somewhere in https://lore.kernel.org/netdev/?q=reverse+christmas+tree,
> ...or maybe it's actually "documented" in checkpatch.pl?

I found it in Documentation/process/maintainer-kvm-x86.rst as below:

"
Using reverse fir tree, a.k.a. reverse Christmas tree or reverse XMAS tree, for
variable declarations isn't strictly required, though it is still preferred.
"

I will update the name and make it only for local variable declarations.

Do I need to update the reference link as well? The name would be
different from the current pyramids link
(https://hisham.hm/2018/06/16/when-listing-repeated-things-make-pyramids/).
Not sure if it would be a little bit confusing if not.

>
> Or prehaps just trust us/me on that, sorry, I know it's not ideal :(
> ...but I can absolutely guarantee it's called Reverse Christmas tree.
>
> --
> Stefano
>


-- 
Thanks,

Yumei Huang


  reply	other threads:[~2025-10-27  3:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-22  4:30 Yumei Huang
2025-10-23  0:40 ` David Gibson
2025-10-23  2:27   ` Stefano Brivio
2025-10-27  3:05     ` Yumei Huang [this message]
2025-10-27  6:46       ` Stefano Brivio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANsz47n-pZSKdBttpFvQ7mBEKw0r-gJ4Qkx6os73msBLo5z3wQ@mail.gmail.com \
    --to=yuhuang@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).