]> git.ipfire.org Git - thirdparty/git.git/commit - log-tree.c
decorate: avoid some unnecessary color overhead
authorAndy Koppe <andy.koppe@gmail.com>
Sun, 20 Aug 2023 18:50:05 +0000 (19:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Aug 2023 18:40:09 +0000 (11:40 -0700)
commitb87a9a2c1ef8c39d4fc3d1e28ebb79563d4804be
treed3a15dcee04967dae5b93d417799130894ac4e2d
parenta3883a6532163f0a53a7b202f32bf8fe565af056
decorate: avoid some unnecessary color overhead

In format_decorations(), don't obtain color sequences if there are no
decorations, and don't emit color sequences around empty strings.

Signed-off-by: Andy Koppe <andy.koppe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c