summaryrefslogtreecommitdiff
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-09-08 04:29:27 -0400
committerJunio C Hamano <gitster@pobox.com>2013-09-09 11:04:28 -0700
commit7192777d226c5b8653c65112a309c2ebd3d6d5c5 (patch)
tree82c4f56d785f743d59e50f449a10390a91f7c5b7 /git-add--interactive.perl
parent4d06473928ee574910accbde05c19ef2263abdf6 (diff)
downloadgit-7192777d226c5b8653c65112a309c2ebd3d6d5c5.tar.gz
config: factor out integer parsing from range checks
When we are parsing integers for config, we use an intmax_t (or uintmax_t) internally, and then check against the size of our result type at the end. We can parameterize the maximum representable value, which will let us re-use the parsing code for a variety of range checks. Unfortunately, we cannot combine the signed and unsigned parsing functions easily, as we have to rely on the signed and unsigned C types internally. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-add--interactive.perl')
0 files changed, 0 insertions, 0 deletions