Re: [PATCH 1/3] Documentation: clarify indentation style for C preprocessor directives
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 24, 2024, 16:41 UTC
- Message-ID
- <xmqqv80uwxn2.fsf@gitster.g>
- In-Reply-To
- <64e0b449936a6828ead98438d621f7e7684546c8.1721818488.git.ps@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
> There has recently been some discussion around how C preprocessor > directives shall be indented [1]. This discussion was settled towards > indenting after the hash by two spaces [2]. Document it as such.
It was settled to have space after and not before the hash, but I do not recall ever agreeing to two spaces. I prefer to increment by 1 for each level instead to keep the whole thing less distracting while carrying meaningful information.
Thanks.