mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
opencode/commands/commit.md: constrain git commands
This commit is contained in:
parent
6f43741760
commit
2a0bbc1356
1 changed files with 8 additions and 2 deletions
|
|
@ -1,9 +1,15 @@
|
|||
---
|
||||
description: Analyze git changes
|
||||
agent: build
|
||||
temprature: 0.1
|
||||
---
|
||||
|
||||
You are analyzing staged changes in git to formalize a commit message and commit the changes.
|
||||
Analyze previous commits to see what style to use.
|
||||
|
||||
* Analyze previous commits to see what style to use.
|
||||
you are only allowed to call these commands:
|
||||
|
||||
* `git diff --staged`
|
||||
* `git log --oneline -10`
|
||||
* `git commit`
|
||||
|
||||
Do not run any external commands than those listed above, just analyze the data provided here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue