log --graph: customize the graph lines with config log.graphColors
commit73c727d69f47572bf7f21fa31831f9a3fdad944c
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 19 Jan 2017 11:41:23 +0000 (19 18:41 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jan 2017 02:32:11 +0000 (23 18:32 -0800)
tree21e0d482c895a0aa7ea14ffb05630eb0f7c378a0
parentbc4075653e3f704f0440ec54e16f88fbc39a682d
log --graph: customize the graph lines with config log.graphColors

If you have a 256 colors terminal (or one with true color support), then
the predefined 12 colors seem limited. On the other hand, you don't want
to draw graph lines with every single color in this mode because the two
colors could look extremely similar. This option allows you to hand pick
the colors you want.

Even with standard terminal, if your background color is neither black
or white, then the graph line may match your background and become
hidden. You can exclude your background color (or simply the colors you
hate) with this.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
graph.c
t/t4202-log.sh