Skip to content

gitignore: Clean up most of the gitignore mess

Hans Ulrich Niedermann grub-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 1 replyIn review
  2. v36 patches 0 repliesSuperseded
  3. v25 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches4 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6gitignore: Consistent leading slash is easier to read.gitignore+44 -440 replies
2/6gitignore: Group patterns with and without slash.gitignore+42 -390 replies
3/6gitignore: Sort both pattern groups alphabetically.gitignore+100 -1000 replies
4/6gitignore: Add trailing slashes for directories.gitignore+7 -70 replies
5/6gitignore: Add leading slashes where appropriate.gitignore+114 -1130 replies
6/6gitignore: Add a few forgotten file patterns.gitignore+32 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDaniel Kiper
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/6] gitignore: Clean up most of the gitignore mess

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:

Signature · 1 line
2.26.2