diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-08-16 12:50:55 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-16 12:50:55 -0700 |
| commit | 2ad2f2f7516701b8a76ae8389e6f6867ca21cefb (patch) | |
| tree | 372e07b4a9ab18e73a4531d04333c84413db21e3 | |
| parent | c09721cb6332171be29321922ebcae21bfaf025b (diff) | |
| parent | 63ad8dbf169ec8e2b3cef40ff51499ee751a84a5 (diff) | |
| download | git-2ad2f2f7516701b8a76ae8389e6f6867ca21cefb.tar.xz | |
Merge branch 'dh/encoding-trace-optim' into maint-2.46
An expensive operation to prepare tracing was done in re-encoding
code path even when the tracing was not requested, which has been
corrected.
* dh/encoding-trace-optim:
convert: return early when not tracing
| -rw-r--r-- | convert.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -324,6 +324,9 @@ static void trace_encoding(const char *context, const char *path, struct strbuf trace = STRBUF_INIT; int i; + if (!trace_want(&coe)) + return; + strbuf_addf(&trace, "%s (%s, considered %s):\n", context, path, encoding); for (i = 0; i < len && buf; ++i) { strbuf_addf( |
