Article View: linux.debian.maint.dpkg
Article #9Bug#1061450: [PATCH v2 1/2] build: Anchor .gitignore entries for generated files
From: Cheng Li
Date: Tue, 03 Nov 2026 08:50
Date: Tue, 03 Nov 2026 08:50
128 lines
6052 bytes
6052 bytes
All the entries in these four directories name files generated at the top level of the directory, but none of them is anchored, so they also match any file with the same name in a subdirectory. The bash completion files are named after the programs they complete and live in <dir>/completion/bash/, so each of them is currently matched by the entry for its own generated program. Adding a new completion file needs git add -f, and git add -A skips it silently. Anchor every entry with a leading "/" so that it only matches the generated file it is meant to match. Ref: #1061450 --- dselect/.gitignore | 6 +++--- scripts/.gitignore | 48 +++++++++++++++++++++++----------------------- src/.gitignore | 24 +++++++++++------------ utils/.gitignore | 8 ++++---- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/dselect/.gitignore b/dselect/.gitignore index bba6d3455..20629e6cf 100644 --- a/dselect/.gitignore +++ b/dselect/.gitignore @@ -1,3 +1,3 @@ -curkeys.h -curkeys.hpp -dselect +/curkeys.h +/curkeys.hpp +/dselect diff --git a/scripts/.gitignore b/scripts/.gitignore index 8bbf4e05b..17c8d7d89 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore @@ -1,24 +1,24 @@ -Build.PL -README.cpan -dpkg-architecture -dpkg-buildapi -dpkg-buildflags -dpkg-buildpackage -dpkg-buildtree -dpkg-checkbuilddeps -dpkg-distaddfile -dpkg-genbuildinfo -dpkg-genchanges -dpkg-gencontrol -dpkg-gensymbols -dpkg-mergechangelogs -dpkg-name -dpkg-parsechangelog -dpkg-scanpackages -dpkg-scansources -dpkg-shlibdeps -dpkg-source -dpkg-statoverride -dpkg-vendor -t.tmp -cover_db +/Build.PL +/README.cpan +/dpkg-architecture +/dpkg-buildapi +/dpkg-buildflags +/dpkg-buildpackage +/dpkg-buildtree +/dpkg-checkbuilddeps +/dpkg-distaddfile +/dpkg-genbuildinfo +/dpkg-genchanges +/dpkg-gencontrol +/dpkg-gensymbols +/dpkg-mergechangelogs +/dpkg-name +/dpkg-parsechangelog +/dpkg-scanpackages +/dpkg-scansources +/dpkg-shlibdeps +/dpkg-source +/dpkg-statoverride +/dpkg-vendor +/t.tmp +/cover_db diff --git a/src/.gitignore b/src/.gitignore index 3a122bf11..13279a60d 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1,12 +1,12 @@ -dpkg -dpkg-db-backup -dpkg-db-keeper -dpkg-deb -dpkg-divert -dpkg-maintscript-helper -dpkg-query -dpkg-realpath -dpkg-split -dpkg-statoverride -dpkg-trigger -t.tmp +/dpkg +/dpkg-db-backup +/dpkg-db-keeper +/dpkg-deb +/dpkg-divert +/dpkg-maintscript-helper +/dpkg-query +/dpkg-realpath +/dpkg-split +/dpkg-statoverride +/dpkg-trigger +/t.tmp diff --git a/utils/.gitignore b/utils/.gitignore index edc11e367..005b37350 100644 --- a/utils/.gitignore +++ b/utils/.gitignore @@ -1,4 +1,4 @@ -org.dpkg.pkexec.update-alternatives.policy -start-stop-daemon -update-alternatives -t.tmp +/org.dpkg.pkexec.update-alternatives.policy +/start-stop-daemon +/update-alternatives +/t.tmp -- 2.47.3
Technical Details
Message-ID:
<NVinn-9zqs-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!npeer.as286.net!npeer-ng0.as286.net!weretis.net!feeder8.news.weretis.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NUnfr-93Yz-1@gated-at.bofh.it> <NVinn-9zqs-3@gated-at.bofh.it> <HZQX0-5jPa-15@gated-at.bofh.it> <NVinn-9zqs-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!npeer.as286.net!npeer-ng0.as286.net!weretis.net!feeder8.news.weretis.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Cheng Li <shiptux@gmail.com>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.dpkg
Subject: Bug#1061450: [PATCH v2 1/2] build: Anchor .gitignore entries for generated files
Date: Tue, 03 Nov 2026 09:50:01 +0100
Message-ID: <NVinn-9zqs-1@gated-at.bofh.it>
References: <NUnfr-93Yz-1@gated-at.bofh.it> <NVinn-9zqs-3@gated-at.bofh.it> <HZQX0-5jPa-15@gated-at.bofh.it> <NVinn-9zqs-3@gated-at.bofh.it>
X-Original-To: 1061450@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Nov 3 08:41:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.547
Reply-To: Cheng Li <shiptux@gmail.com>, 1061450@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-dpkg@lists.debian.org
X-Debian-Pr-Message: followup 1061450
X-Debian-Pr-Package: dpkg-dev
X-Debian-Pr-Keywords: patch newcomer
X-Debian-Pr-Source: dpkg
X-Gm-Message-State: APuU4Z/AnOlW3is58qiRaUawA2CuogYrHkunPJWhfiZ13l1XhjOdRn8u
3xcZwmX4OS4W2NE7AwWcBzvshQH8ZilTy3Wv/kghh9aC092D8a8rJVe6rjfFnuma
X-Gm-Gg: AYBFou282+4O0XvFtO5PGDmjKu1g4twXFHpqeT+kLecEGV8uCUEDOmk/rv/Bdu6YyB2
Bvk7FHKaUILb2NSCDltNn6HLhSmkjq1T/md+t7YWamHI+y4MVvG54uuUa2uT+iCeXzA2vvpw8L1
WdLZTvM6Xtk8kf6w9b3btFiltHEceHQGw/wjlXGQZAz8R6RCdw2AdbyVAE0C+2+DxKmkpmWumpj
6Y96uY8tvKiE/BDVwCz60brvhUe6BMyROeMGcrz79JE2ha/OQimZA9J/JpSJ3u6o8ookci7pfA/
8nR/PQPAtHt6CvKbvYSzqrm2BHM2AYFDgLKYJeVucRXAjxHCTiV8g9+oLcGRD9XpbReGMG3/4/d
r3JWCAajhVAuiXAind+nLu7E+UVQqqSDZ+aw0YDzSZeCjK9vY3WoXk7/Z6q8Mtb0phKGHfTUXCI
8AvEM1tFPDjM3zB67Ep0zIXQ1K3Ca5NlbvJA171ZkKkbn+N3DsgddGxeTGoNQKy8bDUQ53qMYeH
39wePhSofBX7Zzm3xRy9hhR8J4RdG5RPxHGX4W4Zi2ZryNt581ny4TAOw5o56e/JzWvN3viKPUr
0AfCcrlia+BKEycmOG7f+mBn4UNnDYLMw6DLvDfCSoU0A+yoB0E6JOjVsCu8Jqahfeg4HT8CV4X
79EUfbScz
X-Received: by 2002:a17:90b:2805:b0:3ac:c03a:38b0 with SMTP id 98e67ed59e1d1-3ae89574d99mr10367677a91.8.1793695128176;
Tue, 03 Nov 2026 00:38:48 -0800 (PST)
X-Mailer: git-send-email 2.47.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000371
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 128
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Guillem Jover <guillem@debian.org>
X-Original-Date: Tue, 3 Nov 2026 17:38:38 +0900
X-Original-Message-ID: <20261103083839.1737133-2-shiptux@gmail.com>
X-Original-References: <auZEc9gZS01yWzHJ@thunder.hadrons.org> <20261103083839.1737133-1-shiptux@gmail.com> <170612389523.16223.12946706258590361740.reportbug@ag474u.eng.vyatta.net> <20261103083839.1737133-1-shiptux@gmail.com>