Crates.io | repocat |
lib.rs | repocat |
version | 0.2.0 |
source | src |
created_at | 2024-08-09 03:24:13.553383 |
updated_at | 2024-08-27 04:08:05.740797 |
description | A tool to concatenate all code and text files in a github repo for LLM inference contexts |
homepage | |
repository | https://github.com/SamKG/repocat |
max_upload_size | |
id | 1330379 |
size | 29,888 |
This is a simple cli tool that accepts either:
and concatenates all text/code files into a single txt file. This makes it easier to use as context for LLMs.
Check [src/main.rs] for extensions. Feel free to make a PR to add more
Yes! repocat uses the ignore crate from ripgrep, meaning it ignores all of the following by default:
Files and directories that match glob patterns in these three categories:
.gitignore globs (including global and repo-specific globs). This includes .gitignore files in parent directories that are part of the same git repository. (Unless the --no-require-git flag is given.)
.ignore globs, which take precedence over all gitignore globs when there's a conflict. This includes .ignore files in parent directories.
.rgignore globs, which take precedence over all .ignore globs when there's a conflict. This includes .rgignore files in parent directories.
Hidden files and directories.
Binary files. (ripgrep considers any file with a NUL byte to be binary.)
Symbolic links aren't followed.