1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-08 04:04:22 +02:00
lazygit/pkg/commands
Moritz Haase 8fb47fb7d6 pkg/commands: Don't duplicate line breaks when retrieving commit message
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-03-23 08:19:17 +11:00
..
git_commands pkg/commands: Don't duplicate line breaks when retrieving commit message 2022-03-23 08:19:17 +11:00
git_config fix test 2022-01-09 14:09:53 +11:00
hosting_service update linters 2022-03-19 12:12:57 +11:00
loaders abbrev all commits to length 40 for consistency 2022-03-17 19:13:40 +11:00
models exclude interactive rebase TODO commits from commit graph 2022-01-22 15:12:24 +11:00
oscommands update linters 2022-03-19 12:12:57 +11:00
patch update linters 2022-03-19 12:12:57 +11:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums more refactoring 2022-01-04 09:07:15 +11:00
git_cmd_obj_builder.go WIP 2022-01-04 09:07:15 +11:00
git_cmd_obj_runner.go stop retrying due to index lock for now 2022-01-27 21:25:04 +11:00
git_test.go start moving commit panel handlers into controller 2022-03-17 19:13:40 +11:00
git.go update linters 2022-03-19 12:12:57 +11:00