summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-21 11:17:45 -0700
committerJunio C Hamano <gitster@pobox.com>2014-07-21 11:17:45 -0700
commitdadb89d92ce9c81846c1b4c743a41b6e845b572c (patch)
tree68ac1de1b3aaa912b83ff39d084f39ed8a07ea22 /commit.h
parentda33a97998f6d6206c08bd72a527f5b8e6e26d33 (diff)
parent063da62b02aeafe58fdacce0ea48c0761b06df60 (diff)
downloadgit-dadb89d92ce9c81846c1b4c743a41b6e845b572c.tar.gz
Merge branch 'cc/for-each-mergetag'
* cc/for-each-mergetag: commit: add for_each_mergetag()
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 2e1492a6e4..b695aa4a5b 100644
--- a/commit.h
+++ b/commit.h
@@ -312,6 +312,11 @@ extern struct commit_extra_header *read_commit_extra_headers(struct commit *, co
extern void free_commit_extra_headers(struct commit_extra_header *extra);
+typedef void (*each_mergetag_fn)(struct commit *commit, struct commit_extra_header *extra,
+ void *cb_data);
+
+extern void for_each_mergetag(each_mergetag_fn fn, struct commit *commit, void *data);
+
struct merge_remote_desc {
struct object *obj; /* the named object, could be a tag */
const char *name;