X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=refs.h;h=9cd16f82956d89f2800827046151abd7866fb9da;hb=80cd9cf9fa06d9f117a4ff200c9537c8350cab68;hp=9dc8aa01d181dbdbf1c8f643a1bd7de1d311ffa3;hpb=e6cb314c087661a535b8873502b6d40cef1bbd57;p=git.git diff --git a/refs.h b/refs.h index 9dc8aa01d..9cd16f829 100644 --- a/refs.h +++ b/refs.h @@ -52,7 +52,10 @@ int for_each_reflog_ent(const char *ref, each_reflog_ent_fn fn, void *cb_data); */ extern int for_each_reflog(each_ref_fn, void *); -/** Returns 0 if target has the right format for a ref. **/ +#define CHECK_REF_FORMAT_OK 0 +#define CHECK_REF_FORMAT_ERROR (-1) +#define CHECK_REF_FORMAT_ONELEVEL (-2) +#define CHECK_REF_FORMAT_WILDCARD (-3) extern int check_ref_format(const char *target); /** rename ref, return 0 on success **/