diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-20 16:04:46 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-20 16:08:14 -0700 |
commit | e49521b56d8715f46b93ee6bc95f7de9c6858365 (patch) | |
tree | 3303de68046e01531ea03e0efa2006a754ce4f27 /cache.h | |
parent | 62e27f273d66afa996cb7aee6cdb25fbedc053f6 (diff) | |
download | git-e49521b56d8715f46b93ee6bc95f7de9c6858365.tar.gz |
Make hexval() available to others.
builtin-mailinfo.c has its own hexval implementaiton but it can
share the table-lookup one recently implemented in sha1_file.c
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -278,6 +278,12 @@ enum object_type { OBJ_BAD, }; +extern signed char hexval_table[256]; +static inline unsigned int hexval(unsigned int c) +{ + return hexval_table[c]; +} + /* Convert to/from hex/sha1 representation */ #define MINIMUM_ABBREV 4 #define DEFAULT_ABBREV 7 |