git_ui: Scaffold out support for generating commit messages with an LLM (#26161)

This PR adds the rough structure needed to support generating commit
messages using an LLM.

This functionality is not yet surfaced to the user.

This is the current state, if you tweak the source to show the button:


https://github.com/user-attachments/assets/66d1fbc4-09f3-4277-84f4-e9c9ebab274c

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-05 16:42:48 -05:00 committed by GitHub
parent 6a3e8044b1
commit e99d68a66f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,15 @@
You are an expert at writing Git commits. Your job is to write a clear commit message that summarizes the changes.
Only return the commit message in your response. Do not include any additional meta-commentary about the task.
Follow good Git style:
- Separate the subject from the body with a blank line
- Try to limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with any punctuation
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain *what* and *why* vs. *how*
Here are the changes in this commit: