solidiquis / erdtree

A modern, cross-platform, multi-threaded, and general purpose filesystem and disk-usage utility that is aware of .gitignore and hidden file rules.
https://crates.io/crates/erdtree
MIT License
2.36k stars 63 forks source link

Feature request: Include files that are in a .gitignore, but have been force-added to the repository anyway #239

Open Joey9801 opened 1 year ago

Joey9801 commented 1 year ago

Hi,

Firstly, thanks for the great tool!

A relatively common case that occurs in my workflow is:

In this scenario, erdtree correctly ignores all of the items in the .gitignore file such as build directories etc.., but unfortunately this means it also skips this kind of force-added test file. A really useful feature for me would be a slightly tighter integration with git, such that erdtree could know not to exclude these force-added files from its listing.

Cheers, Joe