summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-20 20:11:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-20 20:11:52 (GMT)
commitdaea6fca3564e880dfe29bfab65fd5b608e9491d (patch)
tree59dc5b5f4469c68af6c81a8129498a1cfc215401 /sha1_name.c
parent4c24385e80b333695470d3f4fdc28918a2d3108a (diff)
parent6f75d45b2412c646b74300f360361b319689e554 (diff)
downloadgit-daea6fca3564e880dfe29bfab65fd5b608e9491d.zip
git-daea6fca3564e880dfe29bfab65fd5b608e9491d.tar.gz
git-daea6fca3564e880dfe29bfab65fd5b608e9491d.tar.bz2
Merge branch 'rs/use-isxdigit'
Code cleanup. * rs/use-isxdigit: use isxdigit() for checking if a character is a hexadecimal digit
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_name.c b/sha1_name.c
index 95f9f8f..6d10f05 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -757,7 +757,7 @@ static int get_describe_name(const char *name, int len, unsigned char *sha1)
for (cp = name + len - 1; name + 2 <= cp; cp--) {
char ch = *cp;
- if (hexval(ch) & ~0377) {
+ if (!isxdigit(ch)) {
/* We must be looking at g in "SOMETHING-g"
* for it to be describe output.
*/