- 30 Jul, 2021 1 commit
-
-
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
-
- 17 Jul, 2021 1 commit
-
-
This refactors this to a wrapper function, as well as changing the existing API have a va_list and ... version.
Calvin Buckley committed
-
- 16 Jul, 2021 3 commits
-
-
stdintification: use int64_t and INT64_C instead of long long
Edward Thomson committed -
Edward Thomson committed
-
git__timer: Allow compilation on systems without CLOCK_MONOTONIC
Edward Thomson committed
-
- 15 Jul, 2021 2 commits
-
-
For 32-bit int: There's no real reason for that ifdef if we explicitly specify the stdint.h type. For 64-bit int: ope, I made it signed accidentally
Calvin Buckley committed -
Makes usage of CLOCK_MONOTONIC conditional and makes functions that uses git__timer handle clock resynchronization. Call gettimeofday with tzp set to NULL as required by https://pubs.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html
Peter Pettersson committed
-
- 14 Jul, 2021 4 commits
-
-
Make `FIND_PACKAGE(PythonInterp)` prefer `python3`
Edward Thomson committed -
fix check for ignoring of negate rules
Edward Thomson committed -
Fix wrong time_t used in function
Edward Thomson committed -
config: fix included configs not refreshed more than once
Edward Thomson committed
-