Skip to content

v0.2.0 — Folder & PR Mode Support

Choose a tag to compare

@fabiomolinar fabiomolinar released this 08 Sep 15:08
· 12 commits to main since this release

New Features

Selective folder processing

Added --folder <path> flag to process only a specific subfolder of a repository instead of the entire repo.

Example: git2prompt --folder src rust-lang/rust-by-example

Pull Request mode

Added --pr <number> flag to process only the files impacted by a GitHub pull request. The tool now fetches the PR diff from the GitHub API, reconstructs a temporary file tree containing just the changed files, and processes them as usual.

Example: git2prompt --pr 123 rust-lang/rust

Improvements

Flag interlock: --folder and --pr are now mutually exclusive. Using both at the same time will result in a clear error message.

The pipeline reuses existing file-processing logic (process_repository_files), ensuring consistent output formatting across full repo, folder, and PR modes.

📦 Version bump

Crate version increased from 0.1.0 → 0.2.0 to reflect new backward-compatible features.