mufeedvh / code2prompt

A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
MIT License
1.45k stars 77 forks source link

Add git diff generation and template for git commit message #5

Closed 123vivekr closed 5 months ago

123vivekr commented 5 months ago

Add functionality to generate git diff and include it in the data passed to templates.

This adds a --diff CLI flag to generate the repo's diff. The diff text is included under the "git_diff" key in the data JSON object for templates.

mufeedvh commented 5 months ago

This PR has been identified as a certified banger (again). Merging.