Add --include-logs
option to include git log --name-status
output
#540
Labels
enhancement
New feature or request
Repomix already supports pulling in diffs via
--include-diffs
(see PR #533). This enhancement will let users bundle recent commit history—specifically the output ofgit log --name-status
—into their archive with a simple flag.Motivation:
Proposed Changes:
CLI Definition
Config Schema
Git Collection Logic
In your git collector (e.g.
src/core/git/gitCollector.ts
), whenconfig.output.git.includeLogs
istrue
, run:git log --name-status -n ${config.output.git.includeLogsMaxCommits}
Emit the result as a file (e.g.
repomix-git-log.txt
) inside the output bundle.Documentation & Tests
Update
command-line-options.md
andREADME.md
to document--include-logs
and--include-logs-max-commits
.Add tests under
tests/
to verify:repomix --include-logs
producesrepomix-git-log.txt
.--include-logs-max-commits
override is respected.The text was updated successfully, but these errors were encountered: