summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-04-07 13:48:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-07 19:09:14 (GMT)
commitb5c8ea2afb9bea910f0db5f9a4dfe58471184b3d (patch)
treed47eaf2397412a0e72f2335c8a88ac4924af2973 /refs.h
parentaebfc13337e503b5a7d064cb1e9c9916f24c2baf (diff)
downloadgit-b5c8ea2afb9bea910f0db5f9a4dfe58471184b3d.zip
git-b5c8ea2afb9bea910f0db5f9a4dfe58471184b3d.tar.gz
git-b5c8ea2afb9bea910f0db5f9a4dfe58471184b3d.tar.bz2
refs: remove API function update_refs()
It has been superseded by reference transactions. This also means that struct ref_update can become private. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/refs.h b/refs.h
index 0518dd5..cb799a3 100644
--- a/refs.h
+++ b/refs.h
@@ -10,20 +10,6 @@ struct ref_lock {
int force_write;
};
-/**
- * Information needed for a single ref update. Set new_sha1 to the
- * new value or to zero to delete the ref. To check the old value
- * while locking the ref, set have_old to 1 and set old_sha1 to the
- * value or to zero to ensure the ref does not exist before update.
- */
-struct ref_update {
- const char *ref_name;
- unsigned char new_sha1[20];
- unsigned char old_sha1[20];
- int flags; /* REF_NODEREF? */
- int have_old; /* 1 if old_sha1 is valid, 0 otherwise */
-};
-
struct ref_transaction;
/*
@@ -290,12 +276,6 @@ int update_ref(const char *action, const char *refname,
const unsigned char *sha1, const unsigned char *oldval,
int flags, enum action_on_err onerr);
-/**
- * Lock all refs and then perform all modifications.
- */
-int update_refs(const char *action, struct ref_update * const *updates,
- int n, enum action_on_err onerr);
-
extern int parse_hide_refs_config(const char *var, const char *value, const char *);
extern int ref_is_hidden(const char *);