diff options
| author | René Scharfe <l.s.r@web.de> | 2023-01-14 16:03:16 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-01-14 19:22:26 -0800 |
| commit | c388fcda9943c0cf46960787041a1ff3bcf5e833 (patch) | |
| tree | f7eb4243e00f96a1f353961d9a9121b4b0d325cd /git.c | |
| parent | ls-tree: fix expansion of repeated %(path) (diff) | |
| download | git-c388fcda9943c0cf46960787041a1ff3bcf5e833.tar.gz git-c388fcda9943c0cf46960787041a1ff3bcf5e833.zip | |
ls-tree: remove dead store and strbuf for quote_c_style()
Stop initializing "name" because it is set again before use.
Let quote_c_style() write directly to "sb" instead of taking a detour
through "quoted". This avoids an allocation and a string copy. The
result is the same because the function only appends.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions
