[PATCH 11/13] refs.c: don't expose the internal struct ref_lock in the header file
- From
Stefan Beller <sbeller@google.com>
- Date
- Dec 4, 2014, 08:29 UTC
- Message-ID
- <1417681763-32334-12-git-send-email-sbeller@google.com>
- In-Reply-To
- <1417681763-32334-1-git-send-email-sbeller@google.com>
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> ---
Notes:
This patch is brand new in this series,
so digest it while it's hot!refs.c | 9 +++++++++ refs.h | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/refs.c b/refs.c index 796b7cc..b54b5b3 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 diff --git a/refs.h b/refs.h index 166aab8..cfc8d90 100644 --- 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 transaction represents a collection of ref updates * that should succeed or fail together.
-- 2.2.0