parse_diff_color_slot: drop ofs parameter
authorJeff King <redacted>
Wed, 18 Jun 2014 19:41:50 +0000 (15:41 -0400)
committerJunio C Hamano <redacted>
Wed, 18 Jun 2014 21:56:17 +0000 (14:56 -0700)
commit9e1a5ebe52d84c35eee18a896ad1b8bab53cadbf
treede07f8aa40074aa8235a564e063e4d0b79c94fcb
parentcb682f8cfe63ecd0da08a526f404d295e51e3ab1
parse_diff_color_slot: drop ofs parameter

This function originally took a whole config variable name
("var") and an offset ("ofs"). It checked "var+ofs" against
each color slot, but reported errors using the whole "var".

However, since 8b8e862 (ignore unknown color configuration,
2009-12-12), it returns -1 rather than printing its own
error, and therefore only cares about var+ofs. We can drop
the ofs parameter and teach its sole caller to derive the
pointer itself.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
diff.c
git clone https://git.99rst.org/PROJECT