Skip to content

autoWrapWidth breaking sign-off #5241

@Silvanoc

Description

@Silvanoc

Describe the bug

My name and corporate e-mail address are quite long, resulting in a sign-off line longer than autoWrapWidth. Therefore a linebreak is being added between my name and my e-mail.

It does not happen when the sign-off is automatically added, but when the commit message gets edited (for example, doing a "commit reword").

To Reproduce

Steps to reproduce the behavior:

  1. Make sure that autoWrapCommitMessage is set to true
  2. Find out your autoWrapWidth (either the default 72 or your own configuration)
  3. Configure a git repository with an author name and e-mail that result in a sign-off longer that the configured autoWrapWidth
  4. Create a commit
  5. Reword the commit (marking the commit and pressing r)
  6. Observe that a linebreak has been added between the name and the e-mail in the sign-off line.

Expected behavior

Wrapping does not get applied to sign-offs and, ideally, to any other tag (like Acked-by: , Co-developed-by: , Tested-by: , Reviewed-by: , Fixes: ,...) added to the end of the commit.

Screenshots

If applicable, add screenshots to help explain your problem.

Version info:

commit=, build date=, build source=Homebrew, version=0.58.1, os=darwin, arch=arm64, git version=2.50.1 (Apple Git-155)

Terminal info:

Ghostty

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions