Re: Add trailing commas to enum definitions

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Add trailing commas to enum definitions
Дата
Msg-id 20231023203432.GA815132@nathanxps13
обсуждение исходный текст
Ответ на Re: Add trailing commas to enum definitions  (Junwang Zhao <zhjwpku@gmail.com>)
Ответы Re: Add trailing commas to enum definitions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Add trailing commas to enum definitions  (Junwang Zhao <zhjwpku@gmail.com>)
Re: Add trailing commas to enum definitions  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-hackers
On Mon, Oct 23, 2023 at 05:55:32PM +0800, Junwang Zhao wrote:
> On Mon, Oct 23, 2023 at 2:37 PM Peter Eisentraut <peter@eisentraut.org> wrote:
>> Since C99, there can be a trailing comma after the last value in an enum
> 
> C99 allows us to do this doesn't mean we must do this, this is not
> inconsistent IMHO, and this will pollute the git log messages, people
> may *git blame* the file and see the reason for the introduction of the
> line.

I suspect that your concerns about git-blame could be resolved by adding
this commit to .git-blame-ignore-revs.  From a long-term perspective, I
think standardizing on the trailing comma style will actually improve
git-blame because patches won't need to add a comma to the previous line
when adding a value.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: Re: vacuumdb/clusterdb/reindexdb: allow specifying objects to process in all databases
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: Why is hot_standby_feedback off by default?