diff options
author | Jeff King <peff@peff.net> | 2013-01-23 01:25:22 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-23 12:57:50 -0800 |
commit | 9edbb8b1c1fdb199b47650f50fc432b1bfcb9039 (patch) | |
tree | 4c551f5dba34ddffe178616bf6487d789a8acdae /wt-status.h | |
parent | 0a5987fe5e0cea23245e0beab6eb47131864b276 (diff) | |
download | git-9edbb8b1c1fdb199b47650f50fc432b1bfcb9039.tar.gz |
submodule: use parse_config_key when parsing config
This makes the code a lot simpler to read by dropping a
whole bunch of constant offsets.
As a bonus, it means we also feed the whole config variable
name to our error functions:
[before]
$ git -c submodule.foo.fetchrecursesubmodules=bogus checkout
fatal: bad foo.fetchrecursesubmodules argument: bogus
[after]
$ git -c submodule.foo.fetchrecursesubmodules=bogus checkout
fatal: bad submodule.foo.fetchrecursesubmodules argument: bogus
Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
0 files changed, 0 insertions, 0 deletions