verify_refname_available(): adjust constness in declaration
The two string_list arguments can be const. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>maint
parent
12fd3496d1
commit
3a8af7be8f
|
|
@ -2299,8 +2299,8 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
int verify_refname_available(const char *newname,
|
int verify_refname_available(const char *newname,
|
||||||
struct string_list *extras,
|
const struct string_list *extras,
|
||||||
struct string_list *skip,
|
const struct string_list *skip,
|
||||||
struct strbuf *err)
|
struct strbuf *err)
|
||||||
{
|
{
|
||||||
struct ref_dir *packed_refs = get_packed_refs(&ref_cache);
|
struct ref_dir *packed_refs = get_packed_refs(&ref_cache);
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,8 @@ enum peel_status peel_object(const unsigned char *name, unsigned char *sha1);
|
||||||
* extras and skip must be sorted.
|
* extras and skip must be sorted.
|
||||||
*/
|
*/
|
||||||
int verify_refname_available(const char *newname,
|
int verify_refname_available(const char *newname,
|
||||||
struct string_list *extras,
|
const struct string_list *extras,
|
||||||
struct string_list *skip,
|
const struct string_list *skip,
|
||||||
struct strbuf *err);
|
struct strbuf *err);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue