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> |
||
|---|---|---|
| .. | ||
| tr2_cfg.c | ||
| tr2_cfg.h | ||
| tr2_cmd_name.c | ||
| tr2_cmd_name.h | ||
| tr2_ctr.c | ||
| tr2_ctr.h | ||
| tr2_dst.c | ||
| tr2_dst.h | ||
| tr2_sid.c | ||
| tr2_sid.h | ||
| tr2_sysenv.c | ||
| tr2_sysenv.h | ||
| tr2_tbuf.c | ||
| tr2_tbuf.h | ||
| tr2_tgt.h | ||
| tr2_tgt_event.c | ||
| tr2_tgt_normal.c | ||
| tr2_tgt_perf.c | ||
| tr2_tls.c | ||
| tr2_tls.h | ||
| tr2_tmr.c | ||
| tr2_tmr.h | ||