Carlos Martín Nieto
f184836bd2
remote: run a callback when updating the branch tips
...
This allows the caller to update an internal structure or update the
user output with the tips that were updated.
While in the area, only try to update the ref if the value is
different from its old one.
2012-04-25 13:25:45 +02:00
Carlos Martín Nieto
bf4ef0c567
examples: run fetch in a background thread
...
This allows us to give updates on how it's doing
2012-04-25 12:44:52 +02:00
Carlos Martín Nieto
db0f96a6af
examples: port 'fetch' to the new API
2012-04-25 12:39:17 +02:00
Vicent Marti
d88d4311c7
remote: Cleanup the remotes code
...
- Hide the remaining transports code
- Drop `git_headarray`, switch to using a callback to list refs. Makes
the code cleaner.
2011-11-28 08:40:40 +01:00
Brandon Casey
faeebd06e4
examples/network/fetch.c: revert overzealous conversion of free to git__free
...
Since git__free is not exported (it's actually a macro), it should not be
used in client programs. Change this call to 'git__free' back to 'free'.
2011-11-06 19:35:35 -06:00
Vicent Marti
3286c408ec
global: Properly use git__
memory wrappers
...
Ensure that all memory related functions (malloc, calloc, strdup, free,
etc) are using their respective `git__` wrappers.
2011-10-28 19:02:36 -07:00
Carlos Martín Nieto
2401262778
examples: add ls-remote, fetch and index-pack examples
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-10-03 02:32:32 +02:00