You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
It's on the to-do list to follow what's already in .gitignore like cargo does, but I haven't done it this early in development yet. For now, you pass the -e target (or --exclude target)to tell it to ignore that dir.
imp: Ignore files in accordance with .gitignore
I noticed discussion of this in issues #8 and #9. Here's the approach I took:
* By default `.gitignore`d paths are ignored.
* A `-a` / `--all` flag returns the old behavior.
* A single `.gitignore` file is looked for in the directory in which cargo count is called. No attempt is made to find additional `.gitignore` files in sub-directories.
I have a pull request open with the `gitignore` crate to reclassify `tempdir` as a dev dependency. If that patch gets merged, this patch should be able to be amended to not bring in any additional dependencies except `gitignore` itself.
On a project using piston with 5 source files and no unsafe code in
src/
, I get this output:I believe that this is due to
cargo count
taking into account files in thetarget/
directory, such as generated source files:Perhaps
cargo count
should either hardcode ignoringtarget/
, or read and ignore files ignored in.gitignore
like cargo does?The text was updated successfully, but these errors were encountered: