From: Junio C Hamano Date: Wed, 28 Dec 2011 19:32:33 +0000 (-0800) Subject: Merge branch 'na/strtoimax' into maint X-Git-Tag: v1.7.8.2~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e39888ba21b68888e1db2d989155f23ea78fc842;p=git.git Merge branch 'na/strtoimax' into maint * na/strtoimax: Support sizes >=2G in various config options accepting 'g' sizes. Compatibility: declare strtoimax() under NO_STRTOUMAX Add strtoimax() compatibility function. --- e39888ba21b68888e1db2d989155f23ea78fc842 diff --cc config.c index b6d789a18,43aa456be..5ea101fb2 --- a/config.c +++ b/config.c @@@ -330,10 -323,10 +330,10 @@@ static int git_parse_file(config_fn_t f if (get_value(fn, data, var, baselen+1) < 0) break; } - die("bad config file line %d in %s", config_linenr, config_file_name); + die("bad config file line %d in %s", cf->linenr, cf->name); } - static int parse_unit_factor(const char *end, unsigned long *val) + static int parse_unit_factor(const char *end, uintmax_t *val) { if (!*end) return 1;