X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=refs.h;fp=refs.h;h=d5ac133336dc0da45cd916207d12a5e0e4237ae3;hb=dce4bab6567de7c458b334e029e3dedcab5f2648;hp=b0da5fc95dff025a8dd5c1f299ee25efc6141e81;hpb=7cb368421f62318f2c0f0e19a83ca34c201aebaa;p=git.git diff --git a/refs.h b/refs.h index b0da5fc95..d5ac13333 100644 --- a/refs.h +++ b/refs.h @@ -99,6 +99,7 @@ extern int for_each_reflog(each_ref_fn, void *); #define REFNAME_ALLOW_ONELEVEL 1 #define REFNAME_REFSPEC_PATTERN 2 +#define REFNAME_DOT_COMPONENT 4 /* * Return 0 iff ref has the correct format for a refname according to @@ -106,7 +107,10 @@ extern int for_each_reflog(each_ref_fn, void *); * REFNAME_ALLOW_ONELEVEL is set in flags, then accept one-level * reference names. If REFNAME_REFSPEC_PATTERN is set in flags, then * allow a "*" wildcard character in place of one of the name - * components. No leading or repeated slashes are accepted. + * components. No leading or repeated slashes are accepted. If + * REFNAME_DOT_COMPONENT is set in flags, then allow refname + * components to start with "." (but not a whole component equal to + * "." or ".."). */ extern int check_refname_format(const char *ref, int flags);