Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitCmd ¶
CommitCmd returns the exec.Cmd for the git commit command with the given message. It uses the -e flag to open the editor. If message is empty, it runs 'git commit' without -m, opening the editor for a manual commit.
func GetRecentHistory ¶
GetRecentHistory returns the last n commit messages with their bodies.
func GetStagedDiff ¶
GetStagedDiff returns the diff of staged changes.
func GetStagedDiffSize ¶
GetStagedDiffSize returns the approximate number of characters in the staged diff. This is used to warn the user if the diff is too large for the AI context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.