- 03 May, 2016 2 commits
-
-
John Haley committed
-
When calling `git_commit_create` with an empty array of `parents` and `parent_count == 0` the call will segfault at https://github.com/libgit2/libgit2/blob/master/src/commit.c#L107 when it's trying to compare `current_id` to a null parent oid. This just puts in a check to stop that segfault.
John Haley committed
-
- 02 May, 2016 2 commits
-
-
odb: avoid inflating the full delta to read the header
Edward Thomson committed -
When we read the header, we want to know the size and type of the object. We're currently inflating the full delta in order to read the first few bytes. This can mean hundreds of kB needlessly inflated for large objects. Instead use a packfile stream to read just enough so we can read the two varints in the header and avoid inflating most of the delta.
Carlos Martín Nieto committed
-
- 29 Apr, 2016 4 commits
-
-
cmake: include threading libraries in pkg-config
Carlos Martín Nieto committed -
Include any required threading libraries in our `libgit2.pc`.
Edward Thomson committed -
Introduce `git_signature_from_buffer`
Carlos Martín Nieto committed -
Fix return value of openssl_read (infinite loop)
Edward Thomson committed
-
- 28 Apr, 2016 1 commit
-
-
Allow users to construct a signature from the type of signature lines that actually appear in commits.
Edward Thomson committed
-
- 27 Apr, 2016 1 commit
-
-
Christian Schlack committed
-
- 26 Apr, 2016 8 commits
-
-
Annotated commits: differentiate between the ref names and the description
Carlos Martín Nieto committed -
Differentiate between the ref_name used to create an annotated_commit (that can subsequently be used to look up the reference) and the description that we resolved this with (which _cannot_ be looked up). The description is used for things like reflogs (and may be a ref name, and ID something that we revparsed to get here), while the ref name must actually be a reference name, and is used for things like rebase to return to the initial branch.
Edward Thomson committed -
openssl_read should return -1 in case of error. SSL_read returns values <= 0 in case of error. A return value of 0 can lead to an infinite loop, so the return value of ssl_set_error will be returned if SSL_read is not successful (analog to openssl_write).
Christian Schlack committed -
Test that we can properly abort a rebase when it is initialized by a revspec. This ensures that we do not conflate revspecs and refnames.
Edward Thomson committed -
Remove traces of `git_blob_create_fromchunks`
Carlos Martín Nieto committed -
Arthur Schreiber committed
-
Allow creating copies of `git_reference` objects.
Carlos Martín Nieto committed -
Rebase improvements with IDs
Carlos Martín Nieto committed
-
- 25 Apr, 2016 2 commits
-
-
tag: ignore extra header fields
Edward Thomson committed -
While no extra header fields are defined for tags, git accepts them by ignoring them and continuing the search for the message. There are a few tags like this in the wild which git parses just fine, so we should do the same.
Carlos Martín Nieto committed
-
- 22 Apr, 2016 2 commits
-
-
Arthur Schreiber committed
-
⚡ some warningsCarlos Martín Nieto committed
-
- 21 Apr, 2016 7 commits
-
-
When rebasing with IDs, we do not return to the `branch`, we remain in a detached HEAD state.
Edward Thomson committed -
When `init`ing a rebase from a detached HEAD, be sure to remember that we were in a detached HEAD state so that we can correctly `abort` the object that we just created.
Edward Thomson committed -
Instead of `open`ing a rebase and `abort`ing that, test that we can `abort` a rebase that has just begun with `init`.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
- 19 Apr, 2016 11 commits
-
-
Proxy configuration
Edward Thomson committed -
We were downloading the jar from within an block which only runs for MSVC. Move the download to the start of the test so it gets downloaded for both.
Carlos Martín Nieto committed -
Improve star-star matching
Edward Thomson committed -
Instead of threading the state down to the larger loop, let's have the loop where we detect the double star so each of them are easier to read.
Carlos Martín Nieto committed -
In order to match the star-star, we disable the flag that's looking for a single path element, but that leads to searching for the pattern in the middle of elements in the input string. Mark when we're handing a star-star so we jump over the elements in our attempt to match the part of the pattern that comes after the star-star. While here, tighten up the check so we don't allow invalid rules through.
Carlos Martín Nieto committed -
Running clar directly on appveyor makes it think the command returned failure, so it stops the tests. Running it via ctest lets it go through.
Carlos Martín Nieto committed -
We leave this up to the scheme in the url field. The type should only tell us about whether we want a proxy and whether we want to auto-detect it.
Carlos Martín Nieto committed -
It takes a bit for the propxy to get ready to accept connections, so start it before the build so we can be reasonably sure that it's going to be ready in time.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Carlos Martín Nieto committed
-
I don't quite recall what we do in the other places where we use this, but we should pass this payload to the callbacks.
Carlos Martín Nieto committed
-