- 12 Feb, 2022 2 commits
-
-
Skip new_file_size non-zero test, custom error message if file changed in workdir Co-authored-by: Edward Thomson <ethomson@github.com>
Iliyas Jorio committed -
"diff_file_content_load_workdir_file()" maps a file from the workdir into memory. It uses git_diff_file.size to determine the size of the memory mapping. If this value goes stale, the mmaped area would be sized incorrectly. This could occur if an external program changes the contents of the file after libgit2 had cached its size. This used to segfault if the file becomes smaller (mmaped area too large). This patch causes diff_file_content_load_workdir_file to fail without crashing if it detects that the file size has changed.
Iliyas Jorio committed
-
- 11 Feb, 2022 1 commit
-
-
Fetch by object id
Edward Thomson committed
-
- 09 Feb, 2022 2 commits
-
-
push: Prepare pack before sending pack header.
Edward Thomson committed -
odb: check for write failures
Edward Thomson committed
-
- 08 Feb, 2022 2 commits
-
-
Colin Stolley committed
-
Co-authored-by: Edward Thomson <ethomson@github.com>
Colin Stolley committed
-
- 07 Feb, 2022 2 commits
-
-
Edward Thomson committed
-
For large pushes, preparing the pack can take a while. Currently we send the pack header first, followed by preparing the pack and then finally sending the pack. Unfortunately github.com will terminate a git-receive-pack command over http if it is idle for more than 10 seconds. This is easily exceeded for a large push, and so the push is rejected with a Broken Pipe error. This patch moves the pack preparation ahead of sending the pack header, so that the timeout is avoided. prepare_pack() can be called multiple times but will only do the work once, so the original PREPARE_PACK call inside git_packbuilder_foreach() remains.
Colin Stolley committed
-
- 06 Feb, 2022 6 commits
-
-
SHA256: early preparation
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Provide a mechanism for (internal) users to determine a remote's capabilities from the transport.
Edward Thomson committed -
Edward Thomson committed
-
- 05 Feb, 2022 3 commits
-
-
Move the functionality to update an individual tip out of the loop; although the update tip function remains rather gnarly, at least the outer function is a bit less onerous.
Edward Thomson committed -
Pull ref updating into its own function for future uses.
Edward Thomson committed -
Introduce a function that determines whether a given string is a valid object id (40 chars of hexadigits).
Edward Thomson committed
-
- 03 Feb, 2022 5 commits
-
-
revparse: support bare '@'
Edward Thomson committed -
C90: add inline macro to xdiff and mbedtls
Edward Thomson committed -
Peter Pettersson committed
-
merge: comment conflicts lines in MERGE_MSG
Edward Thomson committed -
merge: support zdiff3 conflict styles
Edward Thomson committed
-
- 31 Jan, 2022 7 commits
-
-
ci: improve the name in CI runs
Edward Thomson committed -
Edward Thomson committed
-
git has started adding comment markers to its conflict lines in MERGE_MSG. Match that behavior.
Edward Thomson committed -
A bare '@' revision syntax represents HEAD. Support it as such.
Edward Thomson committed -
Disabling setting `CMAKE_FIND_LIBRARY_SUFFIXES` on Apple platforms.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
- 30 Jan, 2022 6 commits
-
-
Edward Thomson committed
-
Peter Pettersson committed
-
Peter Pettersson committed
-
refs: Speed up packed lookups.
Edward Thomson committed -
Edward Thomson committed
-
Update to the xdiff used in git v2.35.0, with updates to our build configuration to ignore the sort of warnings that we normally care about (signed/unsigned mismatch, unused, etc.) Any git-specific abstraction bits are now redefined for our use in `git-xdiff.h`. It is a (wildly optimistic) hope that we can use that indirection layer to standardize on a shared xdiff implementation.
Edward Thomson committed
-
- 28 Jan, 2022 4 commits
-
-
Deprecate the `git_packfile_hash` function. Callers should use the new `git_packfile_name` function which provides a unique packfile name.
Edward Thomson committed -
The index's checksum is not an object ID, so we should not use the `git_oid` type. Use a byte array for checksum calculation and storage. Deprecate the `git_indexer_hash` function. Callers should use the new `git_indexer_name` function which provides a unique packfile name.
Edward Thomson committed -
The index's checksum is not an object ID, so we should not use the `git_oid` type. Use a byte array for checksum calculation and storage. Deprecate the `git_index_checksum` function without a replacement. This is an abstraction that callers should not care about (and indeed do not seem to be using). Remove the unused `git_index__changed_relative_to` function.
Edward Thomson committed -
Edward Thomson committed
-