Filter source_tree for changed files when using --git-diff-branch
Right now the entire source_tree is generated unless files are explicitly excluded, would be great if only diffed files would show up in the source tree to avoid consuming so many tokens?
Thanks a lot for this project, it's super helpful :)
Hi @ViktorJT,
It sounds to be an interesting idea. We could only gather the context from diffed files.
Therefore, it won't be in the tree AND not in the actual codebase content. Or do you want to include only diffed files in the tree and include the whole codebase in the content ?
Do I understand your idea properly ?
Ah great!
I was thinking more how --include already works: where both the source tree and codebase content are filtered by a pattern unless the full directory flag is passed?
The problem I'm trying to solve is that my source tree output is quite large and takes up too many tokens :)