Skip to content

Commit 3581d79

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 31e07f7 commit 3581d79

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

refs.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
#include "dir.h"
77
#include "string-list.h"
88

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+
918
/*
1019
* How to handle various characters in refnames:
1120
* 0: An acceptable character for refs

refs.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
#ifndef REFS_H
22
#define REFS_H
33

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-
134
/*
145
* A ref_transaction represents a collection of ref updates
156
* that should succeed or fail together.

0 commit comments

Comments
 (0)