[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 0/6] gitignore: Clean up most of the gitignore mess
From: |
Hans Ulrich Niedermann |
Subject: |
[PATCH v4 0/6] gitignore: Clean up most of the gitignore mess |
Date: |
Thu, 7 May 2020 23:33:14 +0200 |
This cleans up most of the gitignore mess according to Daniel Kiper's
suggestions:
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 v4 of the older patchset v3 which achieves
the very same resulting tree, but without first introducing and then
fixing a wrong sorting order for the ".deps*/" patterns.
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(-)
Interdiff:
--
2.26.2
- [PATCH v4 0/6] gitignore: Clean up most of the gitignore mess,
Hans Ulrich Niedermann <=
- [PATCH v4 1/6] gitignore: Consistent leading slash is easier to read, Hans Ulrich Niedermann, 2020/05/07
- [PATCH v4 2/6] gitignore: Group patterns with and without slash, Hans Ulrich Niedermann, 2020/05/07
- [PATCH v4 3/6] gitignore: Sort both pattern groups alphabetically, Hans Ulrich Niedermann, 2020/05/07
- [PATCH v4 4/6] gitignore: Add trailing slashes for directories, Hans Ulrich Niedermann, 2020/05/07
- [PATCH v4 5/6] gitignore: Add leading slashes where appropriate, Hans Ulrich Niedermann, 2020/05/07
- [PATCH v4 6/6] gitignore: Add a few forgotten file patterns, Hans Ulrich Niedermann, 2020/05/07
- Re: [PATCH v4 0/6] gitignore: Clean up most of the gitignore mess, Daniel Kiper, 2020/05/11