1
0
mirror of https://github.com/git/git.git synced 2024-09-28 05:20:00 +02:00

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>
This commit is contained in:
Stefan Beller 2014-12-12 09:57:02 +01:00 committed by Junio C Hamano
parent 31e07f76a9
commit 3581d79335
2 changed files with 9 additions and 9 deletions

9
refs.c
View File

@ -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

9
refs.h
View File

@ -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.