- 02 Nov, 2016 1 commit
-
-
Exercise the logic surrounding deinitialization of the libgit2 library as well as repeated concurrent de- and reinitialization. This tries to catch races and makes sure that it is possible to reinitialize libgit2 multiple times. After deinitializing libgit2, we have to make sure to setup options required for testing. Currently, this only includes setting up the configuration search path again. Before, this has been set up once in `tests/main.c`.
Patrick Steinhardt committed
-
- 28 Oct, 2016 1 commit
-
-
The `git_pqueue` struct allows being fixed in its total number of entries. In this case, we simply throw away items that are inserted into the priority queue by examining wether the new item to be inserted has a higher priority than the previous smallest one. This feature somewhat contradicts our pqueue implementation in that it is allowed to not have a comparison function. In fact, we also fail to check if the comparison function is actually set in the case where we add a new item into a fully filled fixed-size pqueue. As we cannot determine which item is the smallest item in absence of a comparison function, we fix the `NULL` pointer dereference by simply dropping all new items which are about to be inserted into a full fixed-size pqueue.
Patrick Steinhardt committed
-
- 27 Oct, 2016 1 commit
-
-
Patrick Steinhardt committed
-
- 07 Oct, 2016 1 commit
-
-
`xlocale.h` only defines `regcomp_l` if `regex.h` was included as well. Also change the test cases to actually test `p_regcomp` works with a multibyte locale.
Arthur Schreiber committed
-
- 06 Oct, 2016 2 commits
-
-
Arthur Schreiber committed
-
This is a convenience function to reverse the contents of a vector and a pqueue in-place. The pqueue function is useful in the case where we're treating it as a LIFO queue.
Carlos Martín Nieto committed
-
- 10 Aug, 2016 1 commit
-
-
This code is ported from git.git Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: David Turner <dturner@twopensource.com>
David Turner committed
-
- 06 Jul, 2016 1 commit
-
-
wildart committed
-
- 05 Jul, 2016 1 commit
-
-
Andrius Bentkus committed
-
- 29 Jun, 2016 1 commit
-
-
Krishna Ram Prakash R committed
-
- 26 May, 2016 6 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
When we are provided some input buffer (with a length) to inflate, and it contains more data than simply the deflated data, fail. zlib will helpfully tell us when it is done reading (via Z_STREAM_END), so if there is data leftover in the input buffer, fail lest we continually try to inflate it.
Edward Thomson committed -
Edward Thomson committed
-
Introduce `git_zstream_inflatebuf` for simple uses.
Edward Thomson committed
-
- 06 Apr, 2016 1 commit
-
-
When passing -DUSE_OPENSSL:BOOL=OFF to cmake the testsuite will fail with the following error: core::stream::register_tls [/tmp/libgit2/tests/core/stream.c:40] Function call failed: (error) error -1 - <no message> Fix test to assume failure for tls when built without openssl. While at it also fix GIT_WIN32 cpp to check if it's defined or not.
Andreas Henriksson committed
-
- 31 Mar, 2016 1 commit
-
-
Carlos Martín Nieto committed
-
- 24 Mar, 2016 1 commit
-
-
Edward Thomson committed
-
- 22 Mar, 2016 1 commit
-
-
Remove the now-unnecessary entries vector. Add `git_array_search` to binary search through an array to accomplish this.
Edward Thomson committed
-
- 23 Feb, 2016 1 commit
-
-
Edward Thomson committed
-
- 12 Feb, 2016 1 commit
-
-
Windows defines `timeval` with `long`, which we cannot sanely cope with. Instead, use a custom timeval struct.
Edward Thomson committed
-
- 12 Jan, 2016 1 commit
-
-
Add a new build flag to disable the pool allocator and pass all git_pool_malloc calls straight to git__malloc
Ross Delinger committed
-
- 20 Nov, 2015 1 commit
-
-
Jacques Germishuys committed
-
- 13 Nov, 2015 1 commit
-
-
Vicent Marti committed
-
- 12 Nov, 2015 1 commit
-
-
Carlos Martín Nieto committed
-
- 03 Nov, 2015 2 commits
-
-
When creating a filebuf, detect a directory that exists in our target file location. This prevents a failure later, when we try to move the lock file to the destination.
Edward Thomson committed -
This allows the application to use their own TLS stream, regardless of the capabilities of libgit2 itself.
Carlos Martín Nieto committed
-
- 28 Oct, 2015 2 commits
-
-
Vicent Marti committed
-
Vicent Marti committed
-
- 27 Sep, 2015 1 commit
-
-
Carlos Martín Nieto committed
-
- 19 Sep, 2015 1 commit
-
-
Axel Rasmussen committed
-
- 17 Sep, 2015 4 commits
-
-
`git_futils_mkdir` does not blindly call `git_futils_mkdir_relative`. `git_futils_mkdir_relative` is used when you have some base directory and want to create some path inside of it, potentially removing blocking symlinks and files in the process. This is not suitable for a general recursive mkdir within the filesystem. Instead, when `mkdir` is being recursive, locate the first existent parent directory and use that as the base for `mkdir_relative`.
Edward Thomson committed -
In `mkdir` and `mkdir_r`, ensure that we don't try to remove symlinks that are in our way.
Edward Thomson committed -
Edward Thomson committed
-
Untangle git_futils_mkdir from git_futils_mkdir_ext - the latter assumes that we own everything beneath the base, as if it were being called with a base of the repository or working directory, and is tailored towards checkout and ensuring that there is no bogosity beneath the base that must be cleaned up. This is (at best) slow and (at worst) unsafe in the larger context of a filesystem where we do not own things and cannot do things like unlink symlinks that are in our way.
Edward Thomson committed
-
- 13 Sep, 2015 1 commit
-
-
Ensure that we can iterate the filesystem root and that paths come back well-formed, not with an additional '/'. (eg, when iterating `c:/`, expect that we do not get some path like `c://autoexec.bat`).
Edward Thomson committed
-
- 08 Sep, 2015 2 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
- 05 Sep, 2015 1 commit
-
-
We create a lockfile to update files under GIT_DIR. Sometimes these files are actually located elsewhere and a symlink takes their place. In that case we should lock and update the file at its final location rather than overwrite the symlink.
Carlos Martín Nieto committed
-