aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-06-18 06:15:10 +0200
committerJunio C Hamano <gitster@pobox.com>2016-06-20 11:38:18 -0700
commitc5f04dddb6cf5f76adfe145de3565411711255b8 (patch)
tree99851bcc88f8d5fcb688d1805c2177c3a6766aa0 /refs.h
parent4633a846f5cf085bc11de702d0e78177aa44a907 (diff)
downloadgit-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.gz
git-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.xz
delete_refs(): add a flags argument
This will be useful for passing REF_NODEREF through. 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/refs.h b/refs.h
index 21874f023..6d515a467 100644
--- a/refs.h
+++ b/refs.h
@@ -274,9 +274,10 @@ int delete_ref(const char *refname, const unsigned char *old_sha1,
/*
* Delete the specified references. If there are any problems, emit
* errors but attempt to keep going (i.e., the deletes are not done in
- * an all-or-nothing transaction).
+ * an all-or-nothing transaction). flags is passed through to
+ * ref_transaction_delete().
*/
-int delete_refs(struct string_list *refnames);
+int delete_refs(struct string_list *refnames, unsigned int flags);
/** Delete a reflog */
int delete_reflog(const char *refname);