[Pkg-xen-devel] [PATCH 1/4] debian/.gitignore sort and tighten matching

Elliott Mitchell ehem+debian at m5p.com
Sat Aug 7 14:58:38 BST 2021


Sorting is a maintainance task which is helpful for easier reading.

.gitignore files don't actually behave in an intuitive way.  *All* lines
are wildcards, unless care is taken patterns can catch files in
subdirectories.  Ensuring all names start with a slash ensures they
exclude filenames in subdirectories.

Several entries are expected to be directories, not ordinary files.
Ensure these get reported if a file replaces the directory (suffix
slashes).

Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
---
 debian/.gitignore | 77 +++++++++++++++++++++++------------------------
 1 file changed, 38 insertions(+), 39 deletions(-)

diff --git a/debian/.gitignore b/debian/.gitignore
index 7f7267b720..3bd63c0964 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -1,39 +1,38 @@
-.debhelper
-*.debhelper.*
-*.preinst.debhelper
-*.postinst.debhelper
-*.prerm.debhelper
-*.postrm.debhelper
-*.substvars
-*.stamp
-tmp
-*-[0-9]*.bug-control
-*-[0-9]*.postinst
-*-[0-9]*.postrm
-*.tmp
-files
-xen-doc
-xen-hypervisor-common
-xen-system-amd64
-xen-system-armhf
-xen-system-arm64
-xen-hypervisor-[0-9]*[0-9]
-xen-hypervisor-[0-9]*[0-9].install
-xen-hypervisor-[0-9]*[0-9].lintian-overrides
-xen-utils-[0-9]*[0-9]
-xen-utils-[0-9]*[0-9].install
-xen-utils-[0-9]*[0-9].NEWS
-xen-utils-[0-9]*[0-9].README.Debian
-xen-utils-[0-9]*[0-9].lintian-overrides
-xen-utils-[0-9]*[0-9].prerm
-libxenmisc[0-9]*[0-9].lintian-overrides
-libxenmisc[0-9]*[0-9]
-libxenmisc[0-9]*[0-9].install
-libxenmisc[0-9]*[0-9].lintian-overrides
-libxen-dev
-libxen*[0-9]
-xen-utils-common
-xenstore-utils
-autoreconf.before
-autoreconf.after
-debhelper-build-stamp
+/*-[0-9]*.bug-control
+/*-[0-9]*.postinst
+/*-[0-9]*.postrm
+/*.debhelper.*
+/*.postinst.debhelper
+/*.postrm.debhelper
+/*.preinst.debhelper
+/*.prerm.debhelper
+/*.stamp
+/*.substvars
+/*.tmp
+/.debhelper/
+/autoreconf.after
+/autoreconf.before
+/debhelper-build-stamp
+/files
+/libxen*[0-9]/
+/libxen-dev/
+/libxenmisc[0-9]*[0-9].install
+/libxenmisc[0-9]*[0-9].lintian-overrides
+/libxenmisc[0-9]*[0-9]/
+/tmp/
+/xen-doc/
+/xen-hypervisor-[0-9]*[0-9].install
+/xen-hypervisor-[0-9]*[0-9].lintian-overrides
+/xen-hypervisor-[0-9]*[0-9]/
+/xen-hypervisor-common/
+/xen-system-amd64/
+/xen-system-arm64/
+/xen-system-armhf/
+/xen-utils-[0-9]*[0-9].NEWS
+/xen-utils-[0-9]*[0-9].README.Debian
+/xen-utils-[0-9]*[0-9].install
+/xen-utils-[0-9]*[0-9].lintian-overrides
+/xen-utils-[0-9]*[0-9].prerm
+/xen-utils-[0-9]*[0-9]/
+/xen-utils-common/
+/xenstore-utils/
-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg at m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445






More information about the Pkg-xen-devel mailing list