help: use parse_config_key for man config
commit4d5c6cefd5c3e37fdf096c955abe9f9ac5938a53
authorJeff King <peff@peff.net>
Wed, 23 Jan 2013 06:27:09 +0000 (23 01:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jan 2013 20:58:33 +0000 (23 12:58 -0800)
treed9118f6715442b0e41ee049c8a78000f5dcca258
parent6bfe19ee168cd47295e9d25b4343ec318fab3790
help: use parse_config_key for man config

The resulting code ends up about the same length, but it is
a little more self-explanatory. It now explicitly documents
and checks the pre-condition that the incoming var starts
with "man.", and drops the magic offset "4".

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/help.c