diff options
author | Usman Akinyemi <usmanakinyemi202@gmail.com> | 2025-02-15 21:20:47 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-18 09:05:12 -0800 |
commit | 0c124cba5435c59591da7c91e16bbd901a518bd4 (patch) | |
tree | 207b7af6810c4fdca0af5c38a5158150b155037f /commit-graph.c | |
parent | e63e62171b489dad8ae9d8bd4675b1938bff92c8 (diff) |
version: replace manual ASCII checks with isprint() for clarity
Since the isprint() function checks for printable characters, let's
replace the existing hardcoded ASCII checks with it. However, since
the original checks also handled spaces, we need to account for spaces
explicitly in the new check.
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions