зеркало из https://github.com/microsoft/git.git
Merge branch 'maint'
* maint: Use const qualifier for 'sha1' parameter in delete_ref function
This commit is contained in:
Коммит
17bee1947a
2
cache.h
2
cache.h
|
@ -217,7 +217,7 @@ extern int commit_locked_index(struct lock_file *);
|
|||
extern void set_alternate_index_output(const char *);
|
||||
|
||||
extern void rollback_lock_file(struct lock_file *);
|
||||
extern int delete_ref(const char *, unsigned char *sha1);
|
||||
extern int delete_ref(const char *, const unsigned char *sha1);
|
||||
|
||||
/* Environment bits from configuration mechanism */
|
||||
extern int use_legacy_headers;
|
||||
|
|
2
refs.c
2
refs.c
|
@ -705,7 +705,7 @@ static int repack_without_ref(const char *refname)
|
|||
return commit_lock_file(&packlock);
|
||||
}
|
||||
|
||||
int delete_ref(const char *refname, unsigned char *sha1)
|
||||
int delete_ref(const char *refname, const unsigned char *sha1)
|
||||
{
|
||||
struct ref_lock *lock;
|
||||
int err, i, ret = 0, flag = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче