Skip to content

carriage return in commit message makes all commits below it fail to render #80

Description

@Shu-Ting-Huang

Describe the bug

If there is a commit whose message contains carriage return (\r), all commits below it will no longer show up in the neo git graph.

Steps to reproduce

  1. Create a commit containing carriage return (\r). This can be achieved by running git commit -m $'message line 1\rmessage line 2' in the bash terminal.
  2. Neo git graph will no longer show all the commits below this newly created commit.

Expected behavior

Treat the carriage return as line feed (\n) and render the rest of commit history.

Screenshots

Image

Environment

  • VS Code version: 1.109.5
  • Extension version: 0.5.0
  • OS: Windows 11

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions