Skip to content

infer common prefix for commit title from other commits in the lane branch #9105

@develar

Description

@develar

In some projects, it’s common to use the issue ID as a prefix for commit titles.

So we can infer the prefix from existing commits, so there’s no need to type it again.

Image

Activity

added
enhancementAn improvement to an existing feature
feedback requestedFeedback was requested to help resolve the issue
on Jun 20, 2025
Byron

Byron commented on Jun 20, 2025

@Byron
Collaborator

Thanks a lot for sharing this usecase!

Do you mean that when creating a new commit, it should pre-fill the commit-message with the shared prefix?

develar

develar commented on Jun 20, 2025

@develar
Author

Yes. Another VCS client shows a dropdown of recent commit titles. You select an entry and then remove everything except the issue-number prefix.

I don’t miss having a recent-commit dropdown—Git Butler lets you skip tedious steps like amend, squash, rebase, and other small operations you used to need for high-level workflows. Now I don’t waste time on those tasks; I can perform what I need in a single operation.

This functionality could be part of the AI-generated commit message by including previous commit messages/titles in the context and configuring the prompt accordingly.

Or by adding autocompletion — type just the first letter of the issue number, and it gets completed using numbers from previous commits. The same applies to file names too :)

added
UXsomething related to the user's experience
and removed
feedback requestedFeedback was requested to help resolve the issue
on Jun 21, 2025
Byron

Byron commented on Jun 21, 2025

@Byron
Collaborator

Thank you!

Maybe @krlvi has ideas on the workflow - I could imagine that instead of having a dropdown, instead one could drag an existing commit onto the new commit button to inherit the message. Alternatively, maybe there could be per-lane message templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXsomething related to the user's experienceenhancementAn improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Byron@develar

        Issue actions

          infer common prefix for commit title from other commits in the lane branch · Issue #9105 · gitbutlerapp/gitbutler