verify_refname_available(): adjust constness in declaration

The two string_list arguments can be const.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
This commit is contained in:
Michael Haggerty 2016-04-25 11:20:08 +02:00
parent 12fd3496d1
commit 3a8af7be8f
2 changed files with 4 additions and 4 deletions

View File

@ -2299,8 +2299,8 @@ out:
}
int verify_refname_available(const char *newname,
struct string_list *extras,
struct string_list *skip,
const struct string_list *extras,
const struct string_list *skip,
struct strbuf *err)
{
struct ref_dir *packed_refs = get_packed_refs(&ref_cache);

View File

@ -116,8 +116,8 @@ enum peel_status peel_object(const unsigned char *name, unsigned char *sha1);
* extras and skip must be sorted.
*/
int verify_refname_available(const char *newname,
struct string_list *extras,
struct string_list *skip,
const struct string_list *extras,
const struct string_list *skip,
struct strbuf *err);
/*