зеркало из https://github.com/microsoft/git.git
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:
Родитель
12fd3496d1
Коммит
3a8af7be8f
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче