[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/6] gitignore: Clean up most of the gitignore mess

From: Hans Ulrich Niedermann
Subject: [PATCH v3 0/6] gitignore: Clean up most of the gitignore mess
Date: Thu, 7 May 2020 17:25:00 +0200

This cleans up most of the gitignore mess according to Daniel Kiper's

  1. Consistently add leading slash to all patterns matching relative
     to .gitignore
  2. Group patterns matching everywhere in the subtree and patterns
     matching relative to .gitignore
  3. Sort both pattern groups alphabetically
  4. Add trailing slashes to patterns matching directories
  5. Add leading slash where it has been forgotten
  6. Add a few patterns matching files which have been forgotten

Some of the remaining non-slash patterns (i.e. those matching anywhere
in the directory tree) might work with a leading slash, but I could
not research all of them (especially for old code and optionally built
files), so I have left those for now.

This is a revised version v3 of the older patchset v2 which achieves
mostly the same result, but with the following differences:

  * Add a leading slash to /contrib as well, judging from

  * Split adding slashes to patterns into one patch each for
    leading slashes and one for trailing slashes.

  * Add

      Reviewed-by: Daniel Kiper <address@hidden>

    as Daniel Kiper has asked me to do after splitting trailing and
    leading slashes.

Hans Ulrich Niedermann (6):
  gitignore: Consistent leading slash is easier to read
  gitignore: Group patterns with and without slash
  gitignore: Sort both pattern groups alphabetically
  gitignore: Add trailing slashes for directories
  gitignore: Add leading slashes where appropriate
  gitignore: Add a few forgotten file patterns

 .gitignore | 458 +++++++++++++++++++++++++++++------------------------
 1 file changed, 247 insertions(+), 211 deletions(-)

diff --git a/.gitignore b/.gitignore
index 89bd33f29..aa180fa89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,7 +28,6 @@ GTAGS
@@ -88,6 +87,7 @@ widthspec.bin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]