Skip to content

git-gui doesn't cleanup commit message (strip comments and blank lines) like git-commitΒ #65

@r0nw

Description

@r0nw

Git GUI does not cleanup commit message after editing, which is especially a problem when using commit templates, or in some other cases e.g. after merging when comments appear in the commit message.

I see this issue was actually fixed in Feb 2021 (commit b9a4386) but then reverted straight away in March (commit c0698df).

Do you plan to do the fix again, please?

Btw, executing git -c core.editor=true commit --amend --edit could be used to "post process" just created commit and cleanup it's message. If you'd be willing to accept such solution, I can send it as a patch to the mailinglist. It's very simple, but maybe does not really fit well into git-gui source which only seems to use lower level git plumbing commands.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions