repocat

Crates.iorepocat
lib.rsrepocat
version0.2.0
sourcesrc
created_at2024-08-09 03:24:13.553383
updated_at2024-08-27 04:08:05.740797
descriptionA tool to concatenate all code and text files in a github repo for LLM inference contexts
homepage
repositoryhttps://github.com/SamKG/repocat
max_upload_size
id1330379
size29,888
(SamKG)

documentation

README

REPOCAT 🐱

This is a simple cli tool that accepts either:

  1. a github repo url
  2. a path to a folder

and concatenates all text/code files into a single txt file. This makes it easier to use as context for LLMs.

What file extensions does it look for?

Check [src/main.rs] for extensions. Feel free to make a PR to add more

Does it automatically filter some files?

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.
Commit count: 0

cargo fmt