author | Brian Downing <bdowning@lavos.net> | |
Thu, 12 Jul 2007 13:32:26 +0000 (08:32 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Jul 2007 21:32:35 +0000 (14:32 -0700) | ||
commit | 0b87b6e081e75170ffa40e92aebde1e22ad3161e | |
tree | 6df062d6e330f039f7e72b26b21dd75e4e0004de | tree | snapshot |
parent | 11779e79078c9da604753e570d02134c8d4bae6a | commit | diff |
Add functions for parsing integers with size suffixes
Split out the nnn{k,m,g} parsing code from git_config_int into
git_parse_long, so command-line parameters can enjoy the same
functionality. Also add get_parse_ulong for unsigned values.
Make git_config_int use git_parse_long, and add get_config_ulong
as well.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Split out the nnn{k,m,g} parsing code from git_config_int into
git_parse_long, so command-line parameters can enjoy the same
functionality. Also add get_parse_ulong for unsigned values.
Make git_config_int use git_parse_long, and add get_config_ulong
as well.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
config.c | diff | blob | history |