From 3581d793351dba4e4a2f779a72f39d6ae84c1c2c Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Fri, 12 Dec 2014 09:57:02 +0100 Subject: refs.c: don't expose the internal struct ref_lock in the header file Now the struct ref_lock is used completely internally, so let's remove it from the header file. Signed-off-by: Stefan Beller Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- refs.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'refs.c') diff --git a/refs.c b/refs.c index 55a79429bd..048fbbf50f 100644 --- a/refs.c +++ b/refs.c @@ -6,6 +6,15 @@ #include "dir.h" #include "string-list.h" +struct ref_lock { + char *ref_name; + char *orig_ref_name; + struct lock_file *lk; + unsigned char old_sha1[20]; + int lock_fd; + int force_write; +}; + /* * How to handle various characters in refnames: * 0: An acceptable character for refs -- cgit 1.2.3-korg