gitingest icon indicating copy to clipboard operation
gitingest copied to clipboard

feat: allow include and exclude patterns to be used at the same time

Open rogerbarreto opened this issue 10 months ago • 4 comments

Allow both include and exclude patterns to be used at the same time

Currently we are unable to choose a combination of both thru the cli / UI.

Use Case

I'm being facing some scenarios where I would like to generate all *.csproj files except for *.UnitTest.csproj files , and currently I'm unable to do it, because I cant combine those patterns

In the implementation for the query_process the logic is almost ready to handle those differently, we just need a helper to allow it.

https://github.com/cyclotruc/gitingest/blob/9aee15f8ac07befa995da892894c47cb8d79ccd3/src/server/query_processor.py#L54-L61

rogerbarreto avatar Feb 07 '25 16:02 rogerbarreto

Came here for this. I'd like to include a path and exclude a nested path. Tried using the ! prefix like in the gitignore pattern to exclude it but it's not supported either.

J3m5 avatar Feb 07 '25 16:02 J3m5

@J3m5 @RogerBarreto That's a good point I will add an advanced settings tab where you can add both settings at once

cyclotruc avatar Feb 13 '25 03:02 cyclotruc

I second this feature request as well. Looking forward for the Advanced Tab.

Maybe release it already with a few features first, and take more time for more features.

tiagoicp avatar Mar 24 '25 14:03 tiagoicp

Any update on this? In my case, I would like to exclude all *.json files, except for some special ones like config.json.

timbmg avatar Jun 06 '25 13:06 timbmg

I'll take this and see what can be done quickly.

We need to make this compatible for package and cli usage first, then we can add it to the frontend once we finished talking about integrating the advanced options to the frontend.

ix-56h avatar Jul 02 '25 16:07 ix-56h

Hi there! We haven’t seen activity here for 45 days, so I’m marking this issue as stale. If you’d like to keep it open, please leave a comment within 10 days. Thanks!

github-actions[bot] avatar Aug 22 '25 06:08 github-actions[bot]

Hi there! We haven’t heard anything for 10 days, so I’m closing this issue. Feel free to reopen if you’d like to continue the discussion. Thanks!

github-actions[bot] avatar Sep 01 '25 06:09 github-actions[bot]