refs.c: don't expose the internal struct ref_lock in the header file
authorStefan Beller <sbeller@google.com>
Fri, 12 Dec 2014 08:57:02 +0000 (09:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 18:13:15 +0000 (10:13 -0800)
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>
refs.c
refs.h
diff --git a/refs.c b/refs.c
index 55a79429bd0ec69e8245e515d353a15234377b1d..048fbbf50f6dab1742f6b82b71ae6fa33f0134e1 100644 (file)
--- 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
diff --git a/refs.h b/refs.h
index 28e7834da46e5a859a69da6452f2b8a2841a0528..fc88ba6b3062d29d53a93188d1134d8a513792f7 100644 (file)
--- a/refs.h
+++ b/refs.h
@@ -1,15 +1,6 @@
 #ifndef REFS_H
 #define REFS_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;
-};
-
 /*
  * A ref_transaction represents a collection of ref updates
  * that should succeed or fail together.