Search code examples
gitgithubatom-editorgit-commit

What does 'Toggle hard wrap on commit' do in Atom?


Using the Atom editor with a Github repository.

When I type Enter in the commit comment box, a little 'Enter' toggle button appears on the bottom right of the text box. When hovered the tooltip says "Toggle hard wrap on commit".

Screenshot

My question is simply:

  1. What does this mean (and do)?
  2. Why does it appear only after there's more than 1 line in the comment?

Solution

  • It forces each line of the commit message to by not longer than 72 characters (as discussed here).

    That will enforce a commit format convention (previously done by autoflow).