summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-06-22 12:03:40 +0200
committerJunio C Hamano <gitster@pobox.com>2019-06-24 12:34:20 -0700
commit39c575c96967f325a995cf9716a46f7e924714f5 (patch)
treedbc3d1e379336cd70d43d08a64061f1574dab276 /builtin/commit.c
parent664178e8e23fbd6d79b02ea51374015023c02102 (diff)
config: simplify parsing of unit factors
Just return the value of the factor or zero for unrecognized strings instead of using an output reference and a separate return value to indicate success. This is shorter and simpler. It basically reverts that function to before c8deb5a146 ("Improve error messages when int/long cannot be parsed from config", 2007-12-25), while keeping the better messages, so restore its old name, get_unit_factor(), as well. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions