Add downloaded files to gitignore

Started by Chao Li3 months ago3 messages
#1Chao Li
li.evan.chao@gmail.com
1 attachment(s)

Hi Hackers,

While building Unicode map files, it may download some files from the
Internet, this patch adds them to .gitignore to avoid noise to "git status".

You may view the list of downloaded files in
src/backend/utils/Unicode/Makefile.

Best regards,
Chao Li (Evan)
---------------------
HighGo Software Co., Ltd.
https://www.highgo.com/

Attachments:

v1-0001-Add-downloaded-files-to-.gitignore.patchapplication/octet-stream; name=v1-0001-Add-downloaded-files-to-.gitignore.patchDownload
From cb9d581adbcd4e150774e0a298cec52efb92f923 Mon Sep 17 00:00:00 2001
From: "Chao Li (Evan)" <lic@highgo.com>
Date: Thu, 9 Oct 2025 17:27:20 +0800
Subject: [PATCH v1] Add downloaded files to .gitignore

While building Unicode map files, it may download some files from
the Internet, adding them to .gitignore to avoid noise.

Author: Chao Li <lic@highgo.com>
---
 src/backend/utils/mb/Unicode/.gitignore | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 src/backend/utils/mb/Unicode/.gitignore

diff --git a/src/backend/utils/mb/Unicode/.gitignore b/src/backend/utils/mb/Unicode/.gitignore
new file mode 100644
index 00000000000..8e15519e8a0
--- /dev/null
+++ b/src/backend/utils/mb/Unicode/.gitignore
@@ -0,0 +1,5 @@
+# Downloaded files
+/*.TXT
+/*.txt
+/*.ucm
+/*.xml
-- 
2.39.5 (Apple Git-154)

#2Mingli Zhang
zmlpostgres@gmail.com
In reply to: Chao Li (#1)
Re: Add downloaded files to gitignore

Chao Li <li.evan.chao@gmail.com>于2025年10月9日 周四17:35写道:

Hi Hackers,

While building Unicode map files, it may download some files from the
Internet, this patch adds them to .gitignore to avoid noise to "git status".

You may view the list of downloaded files in
src/backend/utils/Unicode/Makefile.

Best regards,
Chao Li (Evan)
---------------------
HighGo Software Co., Ltd.
https://www.highgo.com/

I saw a similar question, the recommended solution was [1]/messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org

[1]: /messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org
/messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org

<https://www.highgo.com/&gt;

Show quoted text
#3Chao Li
li.evan.chao@gmail.com
In reply to: Mingli Zhang (#2)
Re: Add downloaded files to gitignore

On Oct 9, 2025, at 19:47, Mingli Zhang <zmlpostgres@gmail.com> wrote:

Chao Li <li.evan.chao@gmail.com <mailto:li.evan.chao@gmail.com>>于2025年10月9日 周四17:35写道:

Hi Hackers,

While building Unicode map files, it may download some files from the Internet, this patch adds them to .gitignore to avoid noise to "git status".

You may view the list of downloaded files in src/backend/utils/Unicode/Makefile.

Best regards,
Chao Li (Evan)
---------------------
HighGo Software Co., Ltd.
https://www.highgo.com/

I saw a similar question, the recommended solution was [1]

[1] /messages/by-id/ead644ee-9352-4112-8552-8012d6396ebc@eisentraut.org

<https://www.highgo.com/&gt;

That’s a difference case. In my case, the files to ignore are generated from the build process, while [1] was talking about an individual IDE’s temp files. A similar case is [2]https://git.postgresql.org/cgit/postgresql.git/commit/?id=7e44ac3741dd2ebf8c668d6ac6a10fa6ed7301b3.

[2]: https://git.postgresql.org/cgit/postgresql.git/commit/?id=7e44ac3741dd2ebf8c668d6ac6a10fa6ed7301b3

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/