]> git.99rst.org Git - git.git/commit
decorate: avoid some unnecessary color overhead
authorAndy Koppe <redacted>
Sun, 20 Aug 2023 18:50:05 +0000 (19:50 +0100)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
log-tree.c
git clone https://git.99rst.org/PROJECT