convert some config callbacks to parse_config_key
commitd731f0ade129a71237eff5a17f3196002cb439fb
authorJeff King <peff@peff.net>
Wed, 23 Jan 2013 06:24:23 +0000 (23 01:24 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jan 2013 16:41:50 +0000 (23 08:41 -0800)
treea0957b9760127aac53b5f4a98f44cd0a198e66c5
parent785a04298177e155dc7391e7234945b38b624e34
convert some config callbacks to parse_config_key

These callers can drop some inline pointer arithmetic and
magic offset constants, making them more readable and less
error-prone (those constants had to match the lengths of
strings, but there is no automatic verification of that
fact).

The "ep" pointer (presumably for "end pointer"), which
points to the final key segment of the config variable, is
given the more standard name "key" to describe its function
rather than its derivation.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
ll-merge.c
userdiff.c