- 30 Jul, 2021 11 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Fix one memory leak in master
Edward Thomson committed -
Introduce GIT_OPT_SET_ODB_LOOSE_PRIORITY and GIT_OPT_SET_ODB_PACKED_PRIORITY to allow overriding the default priority values for the default ODB backends. Libgit2 has historically assumed that most objects for long- running operations will be packed, therefore GIT_LOOSE_PRIORITY is set to 1 by default, and GIT_PACKED_PRIORITY to 2. When a client allows libgit2 to set the default backends, they can specify an override for the two priority values in order to change the order in which each ODB backend is accessed.
Tony De La Nuez committed -
There was one test that wasn't correctly disposing of the repository.
lhchavez committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Document `GIT_STATUS_OPT_INCLUDE_UNREADABLE`, and some minor cleanups.
Edward Thomson committed -
common.h: use inline when compiling for C99 and later
Edward Thomson committed
-
- 29 Jul, 2021 1 commit
-
-
Support reading attributes from a specific commit
Edward Thomson committed
-
- 28 Jul, 2021 2 commits
-
-
Edward Thomson committed
-
Crayon committed
-
- 27 Jul, 2021 5 commits
-
-
Edward Thomson committed
-
len, array -> array, len
lhchavez committed -
This change introduces a new API function `git_graph_reachable_from_any()`, that answers the question whether a commit is reachable from any of the provided commits through following parent edges. This function can take advantage of optimizations provided by the existence of a `commit-graph` file, since it makes it faster to know whether, given two commits X and Y, X cannot possibly be an reachable from Y. Part of: #5757
lhchavez committed -
commit-graph: Introduce `git_commit_list_generation_cmp`
Edward Thomson committed -
This change makes calculations of merge-bases a bit faster when there are complex graphs and the commit times cause visiting nodes multiple times. This is done by visiting the nodes in the graph in reverse generation order when the generation number is available instead of commit timestamp. If the generation number is missing in any pair of commits, it can safely fall back to the old heuristic with no negative side-effects. Part of: #5757
lhchavez committed
-
- 26 Jul, 2021 2 commits
-
-
Peter Pettersson committed
-
commit-graph: Use the commit-graph in revwalks
Edward Thomson committed
-
- 22 Jul, 2021 12 commits
-
-
[Submodule] Git submodule dup
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Provide a mechanism to filter using attribute data from a specific commit (making use of `GIT_ATTR_CHECK_INCLUDE_COMMIT`).
Edward Thomson committed -
Introduce `GIT_ATTR_CHECK_INCLUDE_COMMIT`, which like 4fd5748c allows attribute information to be read from files in the repository. 4fd5748c always reads the information from HEAD, while `GIT_ATTR_CHECK_INCLUDE_COMMIT` allows users to provide the commit to read the attributes from.
Edward Thomson committed -
When looking up an attribute file in a commit, we can cache a nonexistent attribute file indefinitely (since a commit could not somehow later contain an attribute file). Cache an empty buffer when an attribute file does not exist in a given commit.
Edward Thomson committed -
Allow filter users to provide an options structure instead of simply flags. This allows for future growth for filter options.
Edward Thomson committed -
Filters use a short-lived structure to keep state during an operation to allow for caching and avoid unnecessary reallocations. This was previously called the "filter options", despite the fact that they contain no configurable options. Rename them to a "filter session" in keeping with an "attribute session", which more accurately describes their use (and allows us to create "filter options" in the future).
Edward Thomson committed -
Allow more advanced attribute queries using a `git_attr_options`, and extended functions to use it. Presently there is no additional configuration in a `git_attr_options` beyond the flags, but this is for future growth.
Edward Thomson committed -
The attribute source object is now the type and the path.
Edward Thomson committed -
We may want to extend the attribute source; use a structure instead of an enum.
Edward Thomson committed -
The enum `git_attr_file_source` is better suffixed with a `_t` since it's a type-of source. Similarly, its members should have a matching name.
Edward Thomson committed
-
- 20 Jul, 2021 2 commits
-
-
Optional stricter allocation checking (for `malloc(0)` cases)
Edward Thomson committed -
Co-authored-by: lhchavez <lhchavez@lhchavez.com>
Edward Thomson committed
-
- 19 Jul, 2021 5 commits
-
-
Calvin Buckley committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Add `GIT_DEBUG_STRICT_ALLOC` to help identify problematic callers of allocation code that pass a `0` size to the allocators and then expect a non-`NULL` return. When given a 0-size allocation, `malloc` _may_ return either a `NULL` _or_ a pointer that is not writeable. Most systems return a non-`NULL` pointer; AIX is an outlier. We should be able to cope with this AIXy behavior, so this adds an option to emulate it.
Edward Thomson committed
-