Skip to content

ragnard/gptel-magit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

gptel-magit: LLM functionality for magit

https://melpa.org/packages/gptel-magit-badge.svg

Uses the fantastic gptel to extend the equally fantastic magit with some LLM-powered functionality.

Functionality is provided for:

  • Generating commit messages
  • Explaining diffs

Installation

Install the package and run gptel-magit-install at an appropriate time, for example:

(use-package gptel-magit
  :ensure t
  :hook (magit-mode . gptel-magit-install))

Usage

Commit messages

You can generate a commit message in two ways:

  1. In the magit transient commit buffer, you can press g to create a commit with a pre-generated message.
  2. In an already started git-commit buffer, you can press M-g to generate a message.

Diff explanation

With the cursor placed on a magit diff section, you can request an explanation by pressing d (to invoke the diff action), and then x.

Customisation

Prompts, and some other options can be customised, see `customize-group magit-gptel`.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published