- 12 Feb, 2022 7 commits
-
-
When we know that we know a file's size, and the file's size changes, fail.
Edward Thomson committed -
When we know the file size (because we're producing it from a working directory iterator, or an index with an up-to-date cache) then set a flag indicating as such. This removes the ambiguity about a 0 file size, which could indicate that a file exists and is 0 bytes, or that we haven't read it yet.
Edward Thomson committed -
Move the empty tree ID into a global space so that it can be generally used.
Edward Thomson committed -
This test was also provided by @jorio https://github.com/libgit2/libgit2/pull/6208#issuecomment-1034072050
Edward Thomson committed -
Iliyas Jorio committed
-
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 5 commits
-
-
Edward Thomson committed
-
Peter Pettersson committed
-
Peter Pettersson committed
-
refs: Speed up packed lookups.
Edward Thomson committed -
Edward Thomson committed
-