Commit aceac672 by Colin Stolley

Rename prepare_pack() to git_packbuilder__prepare()

parent 91775854
...@@ -1308,7 +1308,7 @@ static int ll_find_deltas(git_packbuilder *pb, git_pobject **list, ...@@ -1308,7 +1308,7 @@ static int ll_find_deltas(git_packbuilder *pb, git_pobject **list,
#define ll_find_deltas(pb, l, ls, w, d) find_deltas(pb, l, &ls, w, d) #define ll_find_deltas(pb, l, ls, w, d) find_deltas(pb, l, &ls, w, d)
#endif #endif
int prepare_pack(git_packbuilder *pb) int git_packbuilder__prepare(git_packbuilder *pb)
{ {
git_pobject **delta_list; git_pobject **delta_list;
size_t i, n = 0; size_t i, n = 0;
...@@ -1353,7 +1353,7 @@ int prepare_pack(git_packbuilder *pb) ...@@ -1353,7 +1353,7 @@ int prepare_pack(git_packbuilder *pb)
return 0; return 0;
} }
#define PREPARE_PACK if (prepare_pack(pb) < 0) { return -1; } #define PREPARE_PACK if (git_packbuilder__prepare(pb) < 0) { return -1; }
int git_packbuilder_foreach(git_packbuilder *pb, int (*cb)(void *buf, size_t size, void *payload), void *payload) int git_packbuilder_foreach(git_packbuilder *pb, int (*cb)(void *buf, size_t size, void *payload), void *payload)
{ {
......
...@@ -1035,7 +1035,7 @@ int git_smart__push(git_transport *transport, git_push *push, const git_remote_c ...@@ -1035,7 +1035,7 @@ int git_smart__push(git_transport *transport, git_push *push, const git_remote_c
} }
/* prepare pack before sending pack header to avoid timeouts */ /* prepare pack before sending pack header to avoid timeouts */
if (need_pack && ((error = prepare_pack(push->pb))) < 0) if (need_pack && ((error = git_packbuilder__prepare(push->pb))) < 0)
goto done; goto done;
if ((error = git_smart__get_push_stream(t, &packbuilder_payload.stream)) < 0 || if ((error = git_smart__get_push_stream(t, &packbuilder_payload.stream)) < 0 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment