]> git.proxmox.com Git - libgit2.git/commit
Initial Implementation of progress reports during push
authorJameson Miller <jamill@microsoft.com>
Thu, 19 Sep 2013 18:52:57 +0000 (14:52 -0400)
committerJameson Miller <jamill@microsoft.com>
Mon, 30 Sep 2013 17:22:28 +0000 (13:22 -0400)
commitb176ededb7d226ac85809b3ec594d185e7e3e866
treef0ee8577697aa284cc98ab6ff6ad05b485c87c69
parent5b09db15d1041032c446f6141a9b41265fb253bc
Initial Implementation of progress reports during push

This adds the basics of progress reporting during push. While progress
for all aspects of a push operation are not reported with this change,
it lays the foundation to add these later. Push progress reporting
can be improved in the future - and consumers of the API should
just get more accurate information at that point.

The main areas where this is lacking are:

1) packbuilding progress: does not report progress during deltafication,
   as this involves coordinating progress from multiple threads.

2) network progress: reports progress as objects and bytes are going
   to be written to the subtransport (instead of as client gets
   confirmation that they have been received by the server) and leaves
   out some of the bytes that are transfered as part of the push protocol.
   Basically, this reports the pack bytes that are written to the
   subtransport. It does not report the bytes sent on the wire that
   are received by the server. This should be a good estimate of
   progress (and an improvement over no progress).
CMakeLists.txt
include/git2/pack.h
include/git2/push.h
src/pack-objects.c
src/pack-objects.h
src/push.c
src/push.h
src/transports/smart_protocol.c
src/util.h
tests-clar/online/push.c