Skip to content

Commit 5d3c4da

Browse files
author
Andy Delcambre
committed
Move Tree#count_recursive payload struct into rugged_tree.c
1 parent c31d47d commit 5d3c4da

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/rugged/rugged.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ struct rugged_cb_payload
147147
int exception;
148148
};
149149

150-
struct rugged_treecount_cb_payload
151-
{
152-
int count;
153-
int limit;
154-
};
155-
156150
struct rugged_remote_cb_payload
157151
{
158152
VALUE progress;

ext/rugged/rugged_tree.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ static VALUE rb_git_tree_entrycount(VALUE self)
9393
return INT2FIX(git_tree_entrycount(tree));
9494
}
9595

96+
struct rugged_treecount_cb_payload
97+
{
98+
int count;
99+
int limit;
100+
};
101+
96102
static int rugged__treecount_cb(const char *root, const git_tree_entry *entry, void *data)
97103
{
98104
struct rugged_treecount_cb_payload *payload = data;

0 commit comments

Comments
 (0)