aboutsummaryrefslogtreecommitdiffstats
path: root/refs.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-10-15 22:06:51 +0000
committerJunio C Hamano <gitster@pobox.com>2017-10-16 11:05:50 +0900
commitae077771b09fac4d663e3f8c039318a97eb3a15b (patch)
tree53b4ed92e41aad737b49a44fc60871f7df1445dc /refs.h
parent2616a5e5089814188a583572bd9bf578b18a2a40 (diff)
downloadgit-ae077771b09fac4d663e3f8c039318a97eb3a15b.tar.gz
refs: convert update_ref and refs_update_ref to use struct object_id
Convert update_ref, refs_update_ref, and write_pseudoref to use struct object_id. Update the existing callers as well. Remove update_ref_oid, as it is no longer needed. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/refs.h b/refs.h
index 09575fc2bf..8932109a11 100644
--- a/refs.h
+++ b/refs.h
@@ -643,12 +643,9 @@ void ref_transaction_free(struct ref_transaction *transaction);
* argument.
*/
int refs_update_ref(struct ref_store *refs, const char *msg, const char *refname,
- const unsigned char *new_sha1, const unsigned char *old_sha1,
+ const struct object_id *new_oid, const struct object_id *old_oid,
unsigned int flags, enum action_on_err onerr);
int update_ref(const char *msg, const char *refname,
- const unsigned char *new_sha1, const unsigned char *old_sha1,
- unsigned int flags, enum action_on_err onerr);
-int update_ref_oid(const char *msg, const char *refname,
const struct object_id *new_oid, const struct object_id *old_oid,
unsigned int flags, enum action_on_err onerr);