diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-01-06 17:22:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-07 19:30:09 -0800 |
commit | fc31955294a1baf4845558451494ce42ee70444b (patch) | |
tree | 9324ebd697b98ba12adbf6b7c19490bb0bae25cf /refs | |
parent | log_ref_setup(): manage the name of the reflog file internally (diff) | |
download | tgif-fc31955294a1baf4845558451494ce42ee70444b.tar.xz |
log_ref_write_1(): inline function
Now files_log_ref_write() doesn't do anything beyond call
log_ref_write_1(), so inline the latter into the former.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 846380f38d..39d6f5b782 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -2821,9 +2821,9 @@ static int log_ref_write_fd(int fd, const unsigned char *old_sha1, return 0; } -static int log_ref_write_1(const char *refname, const unsigned char *old_sha1, - const unsigned char *new_sha1, const char *msg, - int flags, struct strbuf *err) +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) { int logfd, result; @@ -2858,13 +2858,6 @@ static int log_ref_write_1(const char *refname, const unsigned char *old_sha1, return 0; } -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) -{ - return log_ref_write_1(refname, old_sha1, new_sha1, msg, flags, err); -} - /* * Write sha1 into the open lockfile, then close the lockfile. On * errors, rollback the lockfile, fill in *err and |