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

Don't prune if filtered by gitignore #45

Open Commenter25 opened 1 year ago

Commenter25 commented 1 year ago

Currently, prune will always delete files that don't exist in the directory being pushed. Ideally, it should ignore files and folders that match the gitignore file. This would allow for keeping files upstream that you don't want to have saved downstream; whether they're too large to keep, changed too little to matter, or are just better uploaded separately.