- 03 Jan, 2014 3 commits
-
-
submodule branch option + little VS2013 fix
Russell Belfer committed -
Use our strnlen on MacOS for backward compat
Vicent Marti committed -
Apparently MacOS didn't have strnlen on 10.6 and earlier. To avoid having linking problems on older versions, we'll just use our internal version.
Russell Belfer committed
-
- 02 Jan, 2014 5 commits
-
-
Russell Belfer committed
-
Robert Konrad committed
-
Robert Konrad committed
-
Accept 'submodule.*.fetchRecurseSubmodules' config 'on-demand' value
Vicent Marti committed -
Updated fetch.c test to pass.
Vicent Marti committed
-
- 31 Dec, 2013 1 commit
-
-
I am not sure why there was 6 in the first place.
Marek Šuppa committed
-
- 30 Dec, 2013 4 commits
-
-
Linquize committed
-
Linquize committed
-
Linquize committed
-
docs: Remove non existing wrapper from the readme
Russell Belfer committed
-
- 27 Dec, 2013 1 commit
-
-
libgit2net stopped to exist, all hail libgit2sharp
Andrius Bentkus committed
-
- 18 Dec, 2013 1 commit
-
-
Reference operations with log
Vicent Marti committed
-
- 13 Dec, 2013 7 commits
-
-
Overwrite ignored files on checkout
Vicent Marti committed -
Edward Thomson committed
-
Edward Thomson committed
-
Clean up some error handling and change callback error behavior
Vicent Marti committed -
The size_t is 32-bit already, so it overflows before going into the function. The `-1` test should handle this gracefully in both cases anyway.
Vicent Marti committed -
Ok, scrap the previous commit. This is the right overflow check that takes care of 64 bit overflow **and** 32-bit overflow, which needs to be considered because the pool malloc can only allocate 32-bit elements in one go.
Vicent Marti committed -
Note that `git_pool_strdup` cannot really return any error codes, because the pool doesn't set errors on OOM. The only place where `giterr_set_oom` is called is in `git_pool_strndup`, in a conditional check that is always optimized away. `n + 1` cannot be zero if `n` is unsigned because the compiler doesn't take wraparound into account. This check has been removed altogether because `size_t` is not particularly going to overflow.
Vicent Marti committed
-
- 12 Dec, 2013 6 commits
-
-
Validate struct versions in merge, revert
Russell Belfer committed -
Edward Thomson committed
-
This wasn't being tested and since it has a callback, I fixed it even though the return value of this callback is not treated like any of the other callbacks in the API.
Russell Belfer committed -
This renames git_vector_free_all to the better git_vector_free_deep and also contains a couple of memory leak fixes based on valgrind checks. The fixes are specifically: failure to free global dir path variables when not compiled with threading on and failure to free filters from the filter registry that had not be initialized fully.
Russell Belfer committed -
This covers diff print, push, and ref foreach. This also has a fix for a small memory leak in the push tests.
Russell Belfer committed -
Russell Belfer committed
-
- 11 Dec, 2013 12 commits
-
-
This adds tests that try canceling an indexer operation from within the progress callback. After writing the tests, I wanted to run this under valgrind and had a number of errors in that situation because mmap wasn't working. I added a CMake option to force emulation of mmap and consolidated the Amiga-specific code into that new place (so we don't actually need separate Amiga code now, just have to turn on -DNO_MMAP). Additionally, I made the indexer code propagate error codes more reliably than it used to.
Russell Belfer committed -
This time actually checking return values in diff notify tests and actually testing callbacks for the index all-all/update-all/etc functions.
Russell Belfer committed -
Russell Belfer committed
-
Clone callbacks can return non-zero values to cancel the clone. This adds some tests to verify that this actually works and updates the documentation to be clearer that this can happen and that the return value will be propagated back by the clone function.
Russell Belfer committed -
The checkout notify callback behavior on non-zero return values was not being tested. This adds tests, fixes a bug with positive values, and clarifies the documentation to make it clear that the checkout can be canceled via this mechanism.
Russell Belfer committed -
The callback to supply data chunks could return a negative value to stop creation of the blob, but we were neither using GIT_EUSER nor propagating the return value. This makes things use the new behavior of returning the negative value back to the user.
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
Okay, I've decided I like the readability of this style much better so I used it everywhere.
Russell Belfer committed -
I find this easier to read...
Russell Belfer committed -
Russell Belfer committed
-
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
-