diff options
| author | René Scharfe <l.s.r@web.de> | 2025-12-27 10:29:35 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-28 14:04:15 +0900 |
| commit | 06188ea5f3f14040eb01aa883ac7a7a03c93e6a2 (patch) | |
| tree | 931ebc67751b850afbad48a5f19612086343608d /t/t4013/diff.format-patch_--stdout_initial..main^ | |
| parent | 9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff) | |
| download | git-06188ea5f3f14040eb01aa883ac7a7a03c93e6a2.tar.gz git-06188ea5f3f14040eb01aa883ac7a7a03c93e6a2.zip | |
config: use git_parse_int() in git_config_get_expiry_in_days()
git_config_get_expiry_in_days() calls git_parse_signed() with the
maximum value of int, which is equivalent to calling git_parse_int().
Do that instead, as its shorter and clearer.
This requires demoting "days" to int to match. Promote "scale" to
intmax_t in turn to arrive at the same result when multiplying them.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--stdout_initial..main^')
0 files changed, 0 insertions, 0 deletions
