summaryrefslogtreecommitdiff
path: root/t/t0100-previous.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2013-01-23 01:23:05 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-23 08:41:49 -0800
commit1b86bbb0ade4641c2da0dc74ebca1c09ec772bb4 (patch)
tree349d2c169d9c9f84d855ea5d929407d0722ddaeb /t/t0100-previous.sh
parentUpdate draft release notes to 1.8.2 (diff)
downloadtgif-1b86bbb0ade4641c2da0dc74ebca1c09ec772bb4.tar.xz
config: add helper function for parsing key names
The config callback functions get keys of the general form: section.subsection.key (where the subsection may be contain arbitrary data, or may be missing). For matching keys without subsections, it is simple enough to call "strcmp". Matching keys with subsections is a little more complicated, and each callback does it in an ad-hoc way, usually involving error-prone pointer arithmetic. Let's provide a helper that keeps the pointer arithmetic all in one place. Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0100-previous.sh')
0 files changed, 0 insertions, 0 deletions