neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
52 stars 14 forks source link

Neocities CLI gitignore parsing #33

Closed tatsumoto-ren closed 11 months ago

tatsumoto-ren commented 3 years ago

Hello. I have noticed that the Neocities CLI supports gitignore parsing. I have tried it, but it seems to incorrectly handle entries that start with a / and !. As you probably know, entries that start with a / tell git to ignore paths in the root directory of the repo, and entries that start with ! negate previously defined rules for certain files. For example, to ignore my blog's drafts folder I would use a pattern that looks like this: /blog/drafts. Do you plan to extend support for gitignore parsing to fully comply with the actual gitignore files?

Commenter25 commented 11 months ago

Please reopen this.

tatsumoto-ren commented 11 months ago

@Commenter25 Since you're interested, I made bashcities to handle this and many other issues that I've faced over the years. You can use it instead.