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 <sbeller@google.com> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Dec 12, 2014 at 09:57 UTC 3581d793351dba4e4a2f779a72f39d6ae84c1c2c
2 files changed +9 -9
refs.c
+9
@@ -6,6 +6,15 @@
6 #include "dir.h"
7 #include "string-list.h"
8
9 +struct ref_lock {
10 + char *ref_name;
11 + char *orig_ref_name;
12 + struct lock_file *lk;
13 + unsigned char old_sha1[20];
14 + int lock_fd;
15 + int force_write;
16 +};
17 +
18 /*
19 * How to handle various characters in refnames:
20 * 0: An acceptable character for refs
refs.h
-9
@@ -1,15 +1,6 @@
1 #ifndef REFS_H
2 #define REFS_H
3
4 -struct ref_lock {
5 - char *ref_name;
6 - char *orig_ref_name;
7 - struct lock_file *lk;
8 - unsigned char old_sha1[20];
9 - int lock_fd;
10 - int force_write;
11 -};
12 -
4 /*
5 * A ref_transaction represents a collection of ref updates
6 * that should succeed or fail together.