- 23 Feb, 2022 8 commits
-
-
Like we want to separate libgit2 and utility source code, we want to separate libgit2 and utility tests. Start by moving all the tests into libgit2.
Edward Thomson committed -
The `git2internal` target is actually the git library; call it such so that IDE users have visibility into it.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Instead of simply including the utility files directly, make them a cmake object library for easy reusability between other projects within libgit2. Now the top-level `src` is responsible for platform selection, while the next-level `libgit2` and `util` configurations are responsible for identifying what objects they include.
Edward Thomson committed -
Edward Thomson committed
-
The `git_error_set` function is useful for callers who implement backends and advanced callbacks. Expose it.
Edward Thomson committed -
Newer gcc is complaining about `object` being potentially not initialized; initialize it.
Edward Thomson committed
-
- 22 Feb, 2022 1 commit
-
-
win32: `find_system_dirs` does not return `GIT_ENOTFOUND`
Edward Thomson committed
-
- 21 Feb, 2022 4 commits
-
-
Allow for no Git for Windows installation. When there is no GfW found in the path or registry, `git_win32__find_system_dirs` would return a `GIT_ENOTFOUND`. Callers were not expecting this. Since this is no error, we simply return `0` so that callers can move on with their lives.
Edward Thomson committed -
remote: do store the update_tips callback error value
Edward Thomson committed -
Carlos Martín Nieto committed
-
We use `git_error_set_after_callback_function` to determine whether `update_tips` returned an error but do not store its return value making us think it always returns 0. Fix it by adding the common patter of storing it inside the `if` when calling it.
Carlos Martín Nieto committed
-
- 18 Feb, 2022 4 commits
-
-
meta: update version number to v1.5.0-alpha
Edward Thomson committed -
xdiff: use xdl_free not free
Edward Thomson committed -
Free parent and ref in lg2_commit before returning.
Edward Thomson committed -
cmake: Fix package name for system http-parser
Edward Thomson committed
-
- 17 Feb, 2022 1 commit
-
-
We've added a lovely abstraction layer in xdiff so that it can call our allocation functions. But it also needs to call our free functions. We missed some `free` calls in `xmerge.c`. Update them to use `xdl_free`. Without this, we will pass a pointer allocated with a custom allocator to the system free function.
💣 Edward Thomson committed
-
- 14 Feb, 2022 4 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Update the version number in main to v1.5.0-alpha. This helps people understand that the main builds are not part of the v1.4.0 release train. We use "alpha" to indicate builds out of main (or nightlies) as semver v2 requires the prerelease component is compared lexicographically. Thus, our "beta" and "rc" releases should follow.
Edward Thomson committed -
Ashok P. Nadkarni committed
-
- 13 Feb, 2022 10 commits
-
-
Fix building against system http-parser library by fixing the find_package() argument. It seems to have been accidentally changed from HTTPParser to HTTP_Parser in de178d36, effectively making the build against system library fail to find it: ``` CMake Warning at cmake/SelectHTTPParser.cmake:3 (find_package): By not providing "FindHTTP_Parser.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "HTTP_Parser", but CMake did not find one. Could not find a package configuration file provided by "HTTP_Parser" with any of the following names: HTTP_ParserConfig.cmake http_parser-config.cmake Add the installation prefix of "HTTP_Parser" to CMAKE_PREFIX_PATH or set "HTTP_Parser_DIR" to a directory containing one of the above files. If "HTTP_Parser" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): src/CMakeLists.txt:97 (include) CMake Error at cmake/SelectHTTPParser.cmake:11 (message): http-parser support was requested but not found Call Stack (most recent call first): src/CMakeLists.txt:97 (include) ```
Michał Górny committed -
meta: show build status for v1.3 and v1.4 branches
Edward Thomson committed -
Edward Thomson committed
-
libgit2 v1.4
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Fix crashes in example programs on Windows (sprintf_s not compatible with snprintf)
Edward Thomson committed -
apnadkarni committed
-
Edward Thomson committed
-
merge: fix overlap between GIT_MERGE_FILE_FAVOR__CONFLICTED and GIT_MERGE_FILE_SIMPLIFY_ALNUM
Edward Thomson committed
-
- 12 Feb, 2022 8 commits
-
-
meta: add a release configuration file
Edward Thomson committed -
diff_file: fix crash if size of diffed file changes in workdir
Edward Thomson committed -
Let's let GitHub handle our release notes as much as possible: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
Edward Thomson committed -
mktmp: improve our temp file creation
Edward Thomson committed -
We made the flags that enable recursive merge internal, on the assumption that nobody would want them and they're hard to reason about. (Giving people an option that nobody wants is just extra noise.) However, it made it hard for _us_ to reason about. There's no good reason to keep it private, let's just make it public and push that cognitive load onto our poor users. But they should expect it, they're dealing with git, after all.
Edward Thomson committed -
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
-