Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
log_ref_write_1(): inline function
author
Michael Haggerty
<mhagger@alum.mit.edu>
Fri, 6 Jan 2017 16:22:37 +0000
(17:22 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 8 Jan 2017 03:30:09 +0000
(19:30 -0800)
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>
refs/files-backend.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4533e53
)
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index 846380f38d7e5b547ec5d2708daae36f11c019fe..39d6f5b78268a9f496c3283fc22f0256311b9054 100644
(file)
--- 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;
}
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;
{
int logfd, result;
@@
-2858,13
+2858,6
@@
static int log_ref_write_1(const char *refname, const unsigned char *old_sha1,
return 0;
}
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
/*
* Write sha1 into the open lockfile, then close the lockfile. On
* errors, rollback the lockfile, fill in *err and