lazygit/pkg/commands
Stefan Haller 944d82028f Replace DOS linefeeds with Unix line feeds when loading a commit message
I have seen some commit messages that contain CRLF instead of just LF; I'm not
sure if these were created by a broken git client, but they exist, so we need to
deal with them. Editing them when rewording a commit sort of works, but is a
little strange; the \r characters are invisble, so you need an extra arrow key
press to skip over them.

In the next commit we are going to add more logic related to line breaks, and it
is getting confused by the \r, so it is becoming more important to fix this. The
easiest fix is to normalize the line endings right after loading.
2024-03-09 10:00:44 +01:00
..
git_commands Replace DOS linefeeds with Unix line feeds when loading a commit message 2024-03-09 10:00:44 +01:00
git_config Remove secureexec package 2023-07-30 19:59:51 +10:00
hosting_service Remove redundant len check 2023-10-04 21:03:26 +08:00
models Show all submodules recursively 2024-03-07 20:16:28 +01:00
oscommands Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
patch Support selecting file range in patch builder 2024-01-28 12:00:47 +11:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
git.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00