Skip to content

Commit

Permalink
refs.c: don't expose the internal struct ref_lock in the header file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Dec 22, 2014
1 parent 31e07f7 commit 3581d79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions refs.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 3581d79

Please sign in to comment.