1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-06 03:53:59 +02:00
lazygit/pkg
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
..
app update linters 2022-03-19 12:12:57 +11:00
cheatsheet update linters 2022-03-19 12:12:57 +11:00
commands pkg/commands: Don't duplicate line breaks when retrieving commit message 2022-03-23 08:19:17 +11:00
common introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
config update linters 2022-03-19 12:12:57 +11:00
constants
env
gui update linters 2022-03-19 12:12:57 +11:00
i18n refactor credential handling 2022-03-17 19:13:40 +11:00
integration update linters 2022-03-19 12:12:57 +11:00
secureexec
tasks update linters 2022-03-19 12:12:57 +11:00
test update linters 2022-03-19 12:12:57 +11:00
theme Add unstagedChangesColor config option 2022-03-16 19:21:39 +11:00
updates pkg/updates: Fix resource availability check in Updater 2022-03-18 22:19:45 +11:00
utils update linters 2022-03-19 12:12:57 +11:00