From: Shawn O. Pearce Date: Sun, 31 Dec 2006 03:13:05 +0000 (-0500) Subject: Teach Git how to parse standard power of 2 suffixes. X-Git-Tag: v1.5.0-rc1~136 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d77a64d353cea0f72655b86dd04bcf9f86cbbea6?hp=d77a64d353cea0f72655b86dd04bcf9f86cbbea6 Teach Git how to parse standard power of 2 suffixes. Sometimes its necessary to supply a value as a power of two in a configuration parameter. In this case the user may want to use the standard suffixes such as K, M, or G to indicate that the numerical value should be multiplied by a constant base before being used. Shell scripts/etc. can also benefit from this automatic option parsing with `git repo-config --int`. [jc: with a couple of test and a slight input tightening] Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano ---