#1014273 ITP: pastaignore -- makes gitignores easier

#1014273#5
Date:
2022-07-03 09:53:16 UTC
From:
To:
* Package name    : pastaignore
  Version         : 1.0.0
  Upstream Author : Name <support@creationship27.com>
* URL             : https://github.com/saltq144/pastaignore
* License         : MIT
  Programming Lang: C++
  Description     : Makes gitignores easier.

It's not limited to gitignores, it can do similar formats (list of files). I need a sponsor.

#1014273#10
Date:
2022-07-04 10:13:59 UTC
From:
To:
Hi,

It's not clear to me what this does that makes it more useful than other
more-general-purpose commands that we already have packaged, such as
find or (for simpler usage) fdfind (from the fd-find package).

For instance, the example in your readme of:

  pastaignore ".*\.o" not "\.\/demo\/important.*\.o"

can (unless I'm missing something) be done with fdfind thus:

  fdfind -E '^demo/important*' ".o$"

BTW does pastaignore take the current .gitignore into account, or does
it just put out all filenames including the already ignored ones?  I
only ask becuase fdfind does use .gitignores (optionally) so will only
list files that are not already ignored, which seems like a useful
feature in such a program.

Cheers, Phil.