config.c: add git_env_ulong() to parse environment variable
commit23b0c4782e5f9357e6189253021053a4404ddf4e
authorSteffen Prohaska <prohaska@zib.de>
Tue, 26 Aug 2014 15:23:21 +0000 (26 17:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Aug 2014 17:24:54 +0000 (28 10:24 -0700)
treed65114d19760b165c80558b4996a161cecdcc05b
parent7ce7c7607b14248b1a3ae7cdd1c079eb3b6efa09
config.c: add git_env_ulong() to parse environment variable

The new function parses an integeral value that fits in unsigned
long in human readable form, i.e. possibly with unit suffix, e.g.
10k = 10240, etc., from an environment variable.  Parsing of
GIT_MMAP_LIMIT and GIT_ALLOC_LIMIT will use it in later patches.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
config.c