aboutsummaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-04-17 12:49:41 +0200
committerJunio C Hamano <gitster@pobox.com>2025-04-17 08:15:16 -0700
commitbc288c59298f199348418ca08322046c67c9a0a2 (patch)
tree7be79f5db2eef26a27d65a1dfbd1de6e2a9e236d /parse.c
parentparse-options: introduce precision handling for `OPTION_INTEGER` (diff)
downloadgit-bc288c59298f199348418ca08322046c67c9a0a2.tar.gz
git-bc288c59298f199348418ca08322046c67c9a0a2.zip
parse-options: introduce precision handling for `OPTION_UNSIGNED`
This commit is the equivalent to the preceding commit, but instead of introducing precision handling for `OPTION_INTEGER` we introduce it for `OPTION_UNSIGNED`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 3c47448ca6..48313571aa 100644
--- a/parse.c
+++ b/parse.c
@@ -51,7 +51,7 @@ int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
return 0;
}
-static int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
+int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
{
if (value && *value) {
char *end;