diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-07-31 15:54:32 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-02 22:44:58 -0700 |
| commit | cb8e82a6414653d5dbda81eedb8ca0cd9ce34c68 (patch) | |
| tree | be38bc928f0924107a0ddb6f093f49b6b388335e /git-gui/lib/commit.tcl | |
| parent | d6fd08bd760711d51b98f9ad98c3cd94d90d2618 (diff) | |
trace2: trim_trailing_newline followed by trim is a no-op
strbuf_trim_trailing_newline() removes a LF or a CRLF from the tail
of a string. If the code plans to call strbuf_trim() immediately
after doing so, the code is better off skipping the EOL trimming in
the first place. After all, LF/CRLF at the end is a mere special
case of whitespaces at the end of the string, which will be removed
by strbuf_rtrim() anyway.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions
