X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cache.h;h=bdbe2d683e18237e2a797573e45b9c38383eaf04;hb=c8568e139ed2149fbfb7ef9a8d819d5b6b7c554f;hp=1e8e27f7b33fb9adca642eab77e14f452bd2e4cb;hpb=767e130915015f897fb87b939843b4882212574b;p=git.git diff --git a/cache.h b/cache.h index 1e8e27f7..bdbe2d68 100644 --- a/cache.h +++ b/cache.h @@ -221,6 +221,9 @@ extern int has_pack_file(const unsigned char *sha1); extern int has_pack_index(const unsigned char *sha1); /* Convert to/from hex/sha1 representation */ +#define MINIMUM_ABBREV 4 +#define DEFAULT_ABBREV 7 + extern int get_sha1(const char *str, unsigned char *sha1); extern int get_sha1_hex(const char *hex, unsigned char *sha1); extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */