- 21 May, 2014 1 commit
-
-
Add a symref_target field to git_remote_head to expose the symref mappings to the user.
Carlos Martín Nieto committed
-
- 03 Mar, 2014 1 commit
-
-
Matthias Bartelmeß committed
-
- 05 Feb, 2014 1 commit
-
-
Also added a test for git_remote_fetch.
Ben Straub committed
-
- 31 Dec, 2013 1 commit
-
-
I am not sure why there was 6 in the first place.
Marek Šuppa committed
-
- 11 Dec, 2013 1 commit
-
-
This changes the behavior of callbacks so that the callback error code is not converted into GIT_EUSER and instead we propagate the return value through to the caller. Instead of using the giterr_capture and giterr_restore functions, we now rely on all functions to pass back the return value from a callback. To avoid having a return value with no error message, the user can call the public giterr_set_str or some such function to set an error message. There is a new helper 'giterr_set_callback' that functions can invoke after making a callback which ensures that some error message was set in case the callback did not set one. In places where the sign of the callback return value is meaningful (e.g. positive to skip, negative to abort), only the negative values are returned back to the caller, obviously, since the other values allow for continuing the loop. The hardest parts of this were in the checkout code where positive return values were overloaded as meaningful values for checkout. I fixed this by adding an output parameter to many of the internal checkout functions and removing the overload. This added some code, but it is probably a better implementation. There is some funkiness in the network code where user provided callbacks could be returning a positive or a negative value and we want to rely on that to cancel the loop. There are still a couple places where an user error might get turned into GIT_EUSER there, I think, though none exercised by the tests.
Russell Belfer committed
-
- 14 Nov, 2013 1 commit
-
-
Ben Straub committed
-
- 11 Nov, 2013 1 commit
-
-
The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
Carlos Martín Nieto committed
-
- 08 Nov, 2013 1 commit
-
-
Victor Garcia committed
-
- 07 Nov, 2013 1 commit
-
-
Victor Garcia committed
-
- 02 Oct, 2013 1 commit
-
-
The text progress and update_tips callbacks are already part of the struct, which was meant to unify the callback setup, but the download one was left out.
Carlos Martín Nieto committed
-
- 24 Sep, 2013 1 commit
-
-
The subtransport path was relying on pointing to data owned by the remote which meant that after a redirect, the updated path was getting lost for future requests. This updates the http transport to strdup the path and maintain its own lifetime. This also pulls responsibility for parsing the URL back into the http transport and isolates the functions that parse and free that connection data so that they can be reused between the initial parsing and the redirect parsing.
Russell Belfer committed
-
- 15 Apr, 2013 1 commit
-
-
Keep the data around until free, as expected by our own fetch example
Carlos Martín Nieto committed
-
- 05 Feb, 2013 2 commits
-
-
Ben Straub committed
-
This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
Ben Straub committed
-
- 02 Jan, 2013 2 commits
-
-
Vicent Marti committed
-
Vicent Marti committed
-
- 20 Dec, 2012 2 commits
-
-
git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
Ben Straub committed -
Ben Straub committed
-
- 14 Dec, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 13 Dec, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 05 Dec, 2012 1 commit
-
-
Vicent Marti committed
-
- 01 Dec, 2012 1 commit
-
-
nulltoken committed
-
- 30 Nov, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 28 Nov, 2012 3 commits
-
-
nulltoken committed
-
nulltoken committed
-
Philip Kelley committed
-
- 27 Nov, 2012 2 commits
-
-
Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
Ben Straub committed -
Russell Belfer committed
-
- 23 Nov, 2012 1 commit
-
-
Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
Sascha Cunz committed
-
- 01 Nov, 2012 1 commit
-
-
This improves docs in some of the public header files, cleans up and improves some of the example code, and fixes a couple of pedantic warnings in places.
Russell Belfer committed
-
- 29 Oct, 2012 1 commit
-
-
This memset was being reached after the entire packfile under WinHttp, so the byte count was being lost for small repos.
Ben Straub committed
-
- 25 Oct, 2012 1 commit
-
-
Pedantic ordering of GIT_UNUSED vs. variable declarations.
Ben Straub committed
-
- 24 Oct, 2012 2 commits
-
-
Ben Straub committed
-
git_indexer_stats and friends -> git_transfer_progress* Also made git_transfer_progress members more sanely named.
Ben Straub committed
-
- 20 Oct, 2012 2 commits
-
-
Ben Straub committed
-
Also removing all the *stats parameters from external APIs that don't need them anymore.
Ben Straub committed
-
- 15 Oct, 2012 1 commit
-
-
nulltoken committed
-