Carlos Martín Nieto
ab46b1d8eb
indexer: include the delta stats
...
The user is unable to derive the number of deltas in the pack, as that
would require them to capture the stats exactly in the moment between
download and final processing, which is abstracted away in the fetch.
Capture these numbers for the user and expose them in the progress
struct. The clone and fetch examples now also present this information
to the user.
2013-10-23 15:08:18 +02:00
Krzysztof Adamski
255836ddac
Adding credentials callback to ls-remote and fetch too.
2013-09-01 19:00:16 +02:00
Martin Woodward
5c46937b3a
Give props to Martin Pool
...
Martin Pool was the original author of the code referenced in the clone
example. Make note that he's given his permission and also give him the
proper credit.
2013-02-26 09:00:37 +00:00
Ben Straub
fe95ac1b67
Allow progress callback to cancel fetch
...
This works by having the indexer watch the return
code of the callback, so will only take effect
on object boundaries.
2013-02-05 10:59:58 -08:00
Ben Straub
7602cb7c0e
Add user-from-url param to auth callback
2013-01-31 10:44:57 -08:00
Edward Thomson
c27e211219
update examples to work on windows
2013-01-23 17:38:00 -06:00
Ben Straub
730df6d0f7
Include checkout options inline
2013-01-02 13:43:54 -08:00
Ben Straub
3de2256708
Fix warnings in example
2012-12-27 11:12:14 -08:00
Ben Straub
316bca697f
Fix clone sample
2012-12-19 17:07:12 -08:00
Ben Straub
b9e7e2b4e1
Move non-options back out of options struct
2012-12-14 13:46:45 -08:00
Ben Straub
0015b5875e
Deploy git_clone_options to network sample
2012-12-14 13:18:06 -08:00
Ben Straub
2b10a2b0e8
Enable authenticated clones in network sample
2012-12-13 11:47:14 -08:00
Ben Straub
24393ea6d3
Stop premature remote freeing when cloning
2012-12-13 09:14:56 -08:00
Ben Straub
34c8c75433
Fix network example
2012-12-13 08:54:23 -08:00
Ben Straub
b81aa2f1de
Deploy GIT_CHECKOUT_OPTS_INIT
2012-11-30 13:12:14 -08:00
Ben Straub
3f63cc9e6d
Examples: fix clone api
2012-11-27 13:18:28 -08:00
Russell Belfer
0f3def715d
Fix various cross-platform build issues
...
This fixes a number of warnings and problems with cross-platform
builds. Among other things, it's not safe to name a member of a
structure "strcmp" because that may be #defined.
2012-11-09 13:52:07 -08:00
Ben Straub
9762ad993d
Renaming: fix example
2012-10-24 13:43:23 -07:00
Ben Straub
2dae54a941
Improve clone sample's formatting
2012-10-19 20:24:15 -07:00
Ben Straub
9c05c17b7a
Checkout progress now reports completed/total steps
2012-10-19 20:05:18 -07:00
Ben Straub
7bcd9e23e8
gitno_buffer: callback on each packet
...
The fetch code takes advantage of this to implement a
progress callback every 100kb of transfer.
2012-10-19 19:36:23 -07:00
Ben Straub
45b60d7b8d
Correct progress reporting from checkout
2012-10-19 19:36:22 -07:00
Ben Straub
aa1e86741d
Clone: in-line callbacks for progress
...
Also implemented in the git2 example.
2012-10-19 19:36:22 -07:00
Ben Straub
2b7efe0340
Example: compile fixes (not yet working)
2012-10-19 19:36:22 -07:00
Ben Straub
383fb799ee
Rename example function to avoid name collision.
2012-07-31 08:51:38 -07:00
Ben Straub
7e02c7c56a
Checkout: save index on checkout.
2012-07-31 08:45:42 -07:00
Ben Straub
84595a30c0
Add clone to the network example.
2012-07-30 14:38:32 -07:00