X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=refs.h;h=730d05ad91a6ac8961c58d599942a5721960d7d7;hp=2727405b61c4e26538c3e76b528df37078337376;hb=f45f88b2e483649cd063a7dc7826c03025683e56;hpb=35d771591f673e1c2c7bc90b998670bed1e9e567 diff --git a/refs.h b/refs.h index 2727405b61..730d05ad91 100644 --- a/refs.h +++ b/refs.h @@ -463,6 +463,12 @@ int for_each_reflog(each_ref_fn fn, void *cb_data); */ int check_refname_format(const char *refname, int flags); +/* + * Apply the rules from check_refname_format, but mutate the result until it + * is acceptable, and place the result in "out". + */ +void sanitize_refname_component(const char *refname, struct strbuf *out); + const char *prettify_refname(const char *refname); char *refs_shorten_unambiguous_ref(struct ref_store *refs,