diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-18 06:15:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-20 11:38:18 -0700 |
commit | c5f04dddb6cf5f76adfe145de3565411711255b8 (patch) | |
tree | 99851bcc88f8d5fcb688d1805c2177c3a6766aa0 /refs.h | |
parent | 4633a846f5cf085bc11de702d0e78177aa44a907 (diff) | |
download | git-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.gz |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |