@anthnykr/pi-study-commits
v0.1.1
Published
Pi extension for selecting recent git commits and injecting their diffs into the conversation.
Downloads
160
Maintainers
Readme
@anthnykr/pi-study-commits
Pi package for studying recent git commits from inside pi.
Install
pi install npm:@anthnykr/pi-study-commitsCommands
/study-commits
Open a picker for recent commits, then inject selected diffs into the conversation.
Examples:
/study-commits
/study-commits 10/study-commits-max
Show or set the default commit count used by /study-commits.
Examples:
/study-commits-max
/study-commits-max 50
/study-commits-max clearPrecedence:
/study-commits 10/study-commits-max 50- built-in default
20
What it does
- checks current directory is a git repo
- loads recent commits with
git log - shows an interactive multi-select picker
- fetches selected diffs with
git show --stat --patch --no-color - caps total diff context at 4000 lines
- sends the assembled context back into the session as a user message
