]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: simplify automatic color reset
authorJeff King <peff@peff.net>
Thu, 13 Jul 2017 14:58:56 +0000 (10:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jul 2017 19:42:50 +0000 (12:42 -0700)
commit51331aad69a1d89a8b6d1ff82bb5fedbdb6ccc6a
tree0c29f668dcc53c3c98ddf851423e179f624d5520
parent097b681baac3a5e9455c74e3072a458249691e40
ref-filter: simplify automatic color reset

When the user-format doesn't add the closing color reset, we
add one automatically. But we do so by parsing the "reset"
string. We can just use the baked-in string literal, which
is simpler.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c