gitingest icon indicating copy to clipboard operation
gitingest copied to clipboard

feat: `.gitingestignore` file

Open BrianLYS opened this issue 1 year ago • 5 comments

Currently whenever I use gitingest I would have to do the following and it doesn't seem to accept multiple files

# Current
gitingest -e LICENSE .

# Should have
gitingest -e "LICENSE README.md package.json" .

There should be also be way for users to ignore multiple files and store it in a .gitingestignore file

node_modules/
LICENSE
package.json
pnpm-lock.yaml
pnpm-workspace.yaml
tsconfig
.
.
.

BrianLYS avatar Jan 21 '25 16:01 BrianLYS

Hey @cyclotruc can I work on this ?

AbhiRam162105 avatar Jan 21 '25 17:01 AbhiRam162105

@AbhiRam162105 Sure! I reviewed and answered on your PR!

cyclotruc avatar Jan 24 '25 06:01 cyclotruc

Can we request that gitingest automatically obey .gitignore? IMO that should happen before a custom ignore file. Let me know if I should make a new issue. Thanks!

pbadeer avatar Feb 21 '25 21:02 pbadeer

I guess it's better to use an assistant-like form to allow users exclude some files/directories from Files content, I found too many things to ignore, package-lock.json, pnpm-lock.json to name a few.

bitsnaps avatar Feb 26 '25 10:02 bitsnaps

can't you call it .genignore? I'll call it that.

janwilmake avatar Apr 18 '25 18:04 janwilmake

@BrianLYS @pbadeer We now support both .gitignore and .gitingestignore. I am also thinking creating a better way to override DEFAULT_IGNORE_PATTERNS.

filipchristiansen avatar Jul 15 '25 04:07 filipchristiansen