Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add blank line between title and message in commitsΒ #791

Open
@Arcanemagus

Description

@Arcanemagus

Description

There should be a blank line between the "title" of a commit message and the full description of the message.

Steps to Reproduce

  1. Stage a file for committing
  2. Write a title (should have a character count on this line), hit enter.
  3. Write a description (should have ∞ as the character count)
  4. Commit the change
  5. View the log

Expected behavior:

Resulting commit message matches what other tools produce.

Actual behavior:

Atom fails to insert a blank line between the title and the detailed description.

Reproduces how often:

100% of the time.

Versions

[email protected]

Tested on a custom Atom build based on merging atom/atom@9653399 and atom/atom@4f1b5b7 into atom/atom@1992c17.

Atom : 1.18.0-dev-969a4da6c
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0

git:
git version 2.13.0.windows.1

GitKraken:
v2.5.0

Additional Information

Atom:
image

git CLI:
image
Note how it highlights any text placed on that line in orange/red!

As an example of how other implementations handle this, here's GitKraken:
image

Result:
image

When viewing the commits on GitHub it handles the lack of a blank line in the same manner as the other tools, but as the blank line is what the official git client does and what other tools do it would be good to follow their lead. It also makes parsing of the messages simpler πŸ˜‰.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions