From: Ronnie Sahlberg Date: Wed, 14 May 2014 22:13:25 GMT Subject: [PATCH 26/31] refs.c: make commit_ref static Message-ID: <1400105610-21194-27-git-send-email-sahlberg@google.com> In-Reply-To: <1400105610-21194-1-git-send-email-sahlberg@google.com> We no longer need to export commit_ref. Make the function static. Signed-off-by: Ronnie Sahlberg --- refs.c | 2 +- refs.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/refs.c b/refs.c index a430b22..0cb4ae8 100644 --- a/refs.c +++ b/refs.c @@ -2676,7 +2676,7 @@ static int close_ref(struct ref_lock *lock) return 0; } -int commit_ref(struct ref_lock *lock) +static int commit_ref(struct ref_lock *lock) { if (commit_lock_file(lock->lk)) return -1; diff --git a/refs.h b/refs.h index f211e13..289558c 100644 --- a/refs.h +++ b/refs.h @@ -139,9 +139,6 @@ extern struct ref_lock *lock_any_ref_for_update(const char *refname, const unsigned char *old_sha1, int flags, int *type_p); -/** Close and commit the ref locked by the lock */ -extern int commit_ref(struct ref_lock *lock); - /** Setup reflog before using. **/ int log_ref_setup(const char *refname, char *logfile, int bufsize); -- 2.0.0.rc3.506.g3739a35