agora inbox for pgsql-hackers@postgresql.org
help / color / mirror / Atom feedFrom: Nathan Bossart <nathan@postgresql.org>
Subject: [PATCH v3 1/3] Update .editorconfig and .gitattributes for postgresql.conf.sample.
Date: Mon, 17 Nov 2025 11:28:09 -0600
This commit updates .editorconfig and .gitattributes in preparation
for a follow-up commit that will modify this file to use tabs
instead of spaces.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan
---
.editorconfig | 6 ++++++
.gitattributes | 1 +
2 files changed, 7 insertions(+)
diff --git a/.editorconfig b/.editorconfig
index e20d15d4533..0ee9bd28ac4 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -85,6 +85,12 @@ insert_final_newline = true
indent_style = unset
tab_width = unset
+[src/backend/utils/misc/postgresql.conf.sample]
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = space
+tab_width = unset
+
[*.out]
indent_style = unset
indent_size = unset
diff --git a/.gitattributes b/.gitattributes
index 4e26bbfb145..00092168393 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -19,6 +19,7 @@ README.* conflict-marker-size=48
*.data -whitespace
contrib/pgcrypto/sql/pgp-armor.sql whitespace=-blank-at-eol
src/backend/catalog/sql_features.txt whitespace=space-before-tab,blank-at-eof,-blank-at-eol
+src/backend/utils/misc/postgresql.conf.sample whitespace=space-before-tab,trailing-space,tab-in-indent
# Test output files that contain extra whitespace
*.out -whitespace
--
2.39.5 (Apple Git-154)
--1rtaHtNFYDnp8wN8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
filename=v3-0002-Switch-from-tabs-to-spaces-in-postgresql.conf.sam.patch
view thread (168+ messages) latest in thread
Message-ID: <no-message-id-1684469@localhost>
Permalink: ../no-message-id-1684469@localhost/
Also on: postgresql.org/message-id/no-message-id-1684469@localhost
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: nathan@postgresql.org
Subject: Re: [PATCH v3 1/3] Update .editorconfig and .gitattributes for postgresql.conf.sample.
In-Reply-To: <no-message-id-1684469@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox