gitfourchette icon indicating copy to clipboard operation
gitfourchette copied to clipboard

Feature Request: Auto-Generate AI Commit Messages Based on Staged Files

Open dinkopehar opened this issue 9 months ago • 4 comments

Hello and thank you for providing this beautiful software 🚀 I saw recently all of Git GUI clients mostly provide this feature and yours is so good and advanced, figured out why not to ask for feature. Below is just some vague description.

Description
As a developer, I want the Git client to automatically suggest AI-generated commit messages based on the contents of staged files. This would streamline the commit process and reduce time spent manually writing messages.

Problem

  • Writing meaningful commit messages is time-consuming, especially for complex or multi-file changes.
  • Users often resort to generic messages ("fix bug" or "update") when rushed, reducing repository clarity.

Proposed Solution

  1. Analyzes diffs/staged files using an AI model (e.g., OpenAI, Claude, or local LLM)
  2. Generates a concise, conventional commit-style message
  3. Allows users to edit the AI-suggested message before finalizing

dinkopehar avatar Mar 18 '25 11:03 dinkopehar

From a corporate point of view, a feature like this must be opt in and it should be possible to restrict its usage through a system-wide (/etc/) configuration. The idea that an application could upload code to a third-party for analysis is a major concern nowadays.

Eonfge avatar Jun 11 '25 06:06 Eonfge

From a corporate point of view, a feature like this must be opt in and it should be possible to restrict its usage through a system-wide (/etc/) configuration. The idea that an application could upload code to a third-party for analysis is a major concern nowadays.

Coming from GitButler, it's AI commit message would send diffs when user clicks on "Generate Commit Message". So it's not constantly sent or uploaded, only on demand

dinkopehar avatar Jun 11 '25 11:06 dinkopehar

From a corporate point of view, a feature like this must be opt in and it should be possible to restrict its usage through a system-wide (/etc/) configuration. The idea that an application could upload code to a third-party for analysis is a major concern nowadays.

Coming from GitButler, it's AI commit message would send diffs when user clicks on "Generate Commit Message". So it's not constantly sent or uploaded, only on demand

Irrelevant; many companies will not accept proprietary code being uploaded into an AI for any reason, whether on-demand or automatically.

cornelius-dol avatar Jul 18 '25 19:07 cornelius-dol

Agree on system-wide level disabling it 👍🏻 That is more for companies security and compliance

For individuals, working on their projects, it would be nice feature to summarize it using AI (similar how Claude does it)

dinkopehar avatar Jul 19 '25 16:07 dinkopehar