Message ID | pull.1744.v4.git.git.1722002432630.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 63ad8dbf169ec8e2b3cef40ff51499ee751a84a5 |
Headers | show |
Series | [v4] convert: avoid high memory footprint | expand |
diff --git a/convert.c b/convert.c index d8737fe0f2d..c4ddc4de81b 100644 --- a/convert.c +++ b/convert.c @@ -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(