summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/commit_test.go
AgeCommit message (Collapse)Author
2022-03-23pkg/commands: Don't duplicate line breaks when retrieving commit messageMoritz Haase
When using the "copy commit message to clipboard" action, the message will end up in the clipboard with duplicate line breaks. The same issue also affects the "Reword Commit" command. GetCommitMessage(), the function used to retrieve the commit message first splits the output returned by git into separate lines - without removing the line breaks. After removing the first line (which contains the commit SHA), it joins the lines of the message itself back together - adding a second set of line breaks along the way. Stop this from happening. Fixes #1808.
2022-01-09add some more lintersJesse Duffield
2022-01-09refactorJesse Duffield