files-backend: make files_log_ref_write() static

Created in 5f3c3a4e6f (files_log_ref_write: new function - 2015-11-10)
but probably never used outside refs-internal.c

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2017-03-26 09:42:15 +07:00 коммит произвёл Junio C Hamano
Родитель 504c4d42db
Коммит 11f8457fb9
2 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -165,6 +165,9 @@ static struct ref_entry *create_dir_entry(struct files_ref_store *ref_store,
const char *dirname, size_t len, const char *dirname, size_t len,
int incomplete); int incomplete);
static void add_entry_to_dir(struct ref_dir *dir, struct ref_entry *entry); static void add_entry_to_dir(struct ref_dir *dir, struct ref_entry *entry);
static int files_log_ref_write(const char *refname, const unsigned char *old_sha1,
const unsigned char *new_sha1, const char *msg,
int flags, struct strbuf *err);
static struct ref_dir *get_ref_dir(struct ref_entry *entry) static struct ref_dir *get_ref_dir(struct ref_entry *entry)
{ {
@ -2831,9 +2834,9 @@ static int log_ref_write_fd(int fd, const unsigned char *old_sha1,
return 0; return 0;
} }
int files_log_ref_write(const char *refname, const unsigned char *old_sha1, static int files_log_ref_write(const char *refname, const unsigned char *old_sha1,
const unsigned char *new_sha1, const char *msg, const unsigned char *new_sha1, const char *msg,
int flags, struct strbuf *err) int flags, struct strbuf *err)
{ {
int logfd, result; int logfd, result;

Просмотреть файл

@ -228,10 +228,6 @@ struct ref_transaction {
enum ref_transaction_state state; enum ref_transaction_state state;
}; };
int files_log_ref_write(const char *refname, const unsigned char *old_sha1,
const unsigned char *new_sha1, const char *msg,
int flags, struct strbuf *err);
/* /*
* Check for entries in extras that are within the specified * Check for entries in extras that are within the specified
* directory, where dirname is a reference directory name including * directory, where dirname is a reference directory name including