- 10 Sep, 2012 1 commit
-
-
The `git_diff_iterator_num_files` API was problematic, since we don't actually know the exact number of files to be iterated over until we load those files into memory. This replaces it with a new `git_diff_iterator_progress` API that goes from 0 to 1, and moves and renamed the old API for the internal places that can tolerate a max value instead of an exact value.
Russell Belfer committed
-
- 06 Sep, 2012 10 commits
-
-
Previously when diffing blobs, the diff code just ran with a NULL repository object. Of course, that's not necessary and the test for a NULL repo was confusing. This makes the blob diff run with the repo that contains the blobs and clarifies the test that it is possible to be diffing data where the path is unknown.
Russell Belfer committed -
This adds support to diff and status for running filters (a la crlf) on blobs in the workdir before computing SHAs and before generating text diffs. This ended up being a bit more code change than I had thought since I had to reorganize some of the diff logic to minimize peak memory use when filtering blobs in a diff. This also adds a cap on the maximum size of data that will be loaded to diff. I set it at 512Mb which should match core git. Right now it is a #define in src/diff.h but it could be moved into the public API if desired.
Russell Belfer committed -
Russell Belfer committed
-
I couldn't get the last failing test to actually fail. This is a different test suggested by @nulltoken which should fail.
Russell Belfer committed -
Staged file status does not handle CRLF correctly. Ensures that the test repo has core.autocrlf=true for the test to fail.
pontusm committed -
Michael Schubert committed
-
Expose a malloc function to 3rd party ODB backends
Vicent Martí committed -
netops: be more careful with SSL errors
Vicent Martí committed -
Vicent Marti committed
-
Vicent Marti committed
-
- 05 Sep, 2012 4 commits
-
-
Test for gitmodules only submodule def
Russell Belfer committed -
This should confirm that issue #835 is fixed where a submodule that is only declared in the .gitmodules file was not accessible via the submodule APIs.
Russell Belfer committed -
This adds better header comments and also fixes a bug in one of simple APIs that tells the number of lines in the current hunk.
Russell Belfer committed -
This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
Russell Belfer committed
-
- 04 Sep, 2012 7 commits
-
-
Windows: Perform UTF-8 path conversion on the Stack
Vicent Martí committed -
Vicent Marti committed
-
Carlos Martín Nieto committed
-
We don't care about the supposed zlib errors, and the leak from giterr_set isn't interesting, as it gets freed each time an error is set. Give valgrind a suppressions file so it doesn't tell us about them.
Carlos Martín Nieto committed -
Vicent Marti committed
-
Fix MSVC compilation warnings
Vicent Martí committed -
nulltoken committed
-
- 03 Sep, 2012 2 commits
-
-
SSL_get_error() allows to receive a result code for various SSL operations. Depending on the return value (see man (3) SSL_get_error) there might be additional information in the OpenSSL error queue. Return the queued message if available, otherwise set an error message corresponding to the return code.
Michael Schubert committed -
Michael Schubert committed
-
- 30 Aug, 2012 1 commit
-
-
Ben Straub committed
-
- 29 Aug, 2012 5 commits
-
-
repository: add failing repo initialization test
Russell Belfer committed -
nulltoken committed
-
Vicent Marti committed
-
Vicent Marti committed
-
Vicent Martí committed
-
- 28 Aug, 2012 4 commits
-
-
signature: make the OS give us the offset for git_signature_now
Vicent Martí committed -
Michael Schubert committed
-
There is a better and less fragile way to calculate time offsets. Let the OS take care of dealing with DST and simply take the the offset between the local time and UTC that it gives us.
Carlos Martín Nieto committed -
Passing SSL_VERIFY_PEER makes OpenSSL shut down the connection if the certificate is invalid, without giving us a chance to ignore that error. Pass SSL_VERIFY_NONE and call SSL_get_verify_result if the user wanted us to check. When no CNs match, we used to jump to on_error which gave a bogus error as that's for OpenSSL errors. Jump to cert_fail so we tell the user that the error came from checking the certificate.
Carlos Martín Nieto committed
-
- 27 Aug, 2012 6 commits
-
-
Conflicts: include/git2/refs.h
Vicent Marti committed -
Make git_object_peel a bit smarter
Vicent Martí committed -
refs: expose git_reference_normalize_name()
Vicent Martí committed -
revwalk: refuse push of non-commit objects
Vicent Martí committed -
This expands the types of peeling that `git_object_peel` knows how to do to include TAG -> BLOB peeling, and makes the errors slightly more consistent depending on the situation. It also adds a new special behavior where peeling to ANY will peel until the object type changes (e.g. chases TAGs to a non-TAG). Using this expanded peeling, this replaces peeling code that was embedded in `git_tag_peel` and `git_reset`.
Russell Belfer committed -
branch: reduce code duplication
Russell Belfer committed
-