- 03 Sep, 2023 1 commit
-
-
Callers want to be able to simply call `git_error_last()->message`, not have to worry about whether `git_error_last()` returns NULL or not.
Edward Thomson committed
-
- 24 Apr, 2023 1 commit
-
-
The opt mechanism isn't _really_ meant to be for feature flags, and it's weird to feature flag shallow / unshallow at all.
Edward Thomson committed
-
- 06 Sep, 2022 1 commit
-
-
Yuang Li committed
-
- 27 Jul, 2022 1 commit
-
-
yuangli committed
-
- 28 Jun, 2022 2 commits
- 27 Jun, 2022 1 commit
-
-
Yuang Li committed
-
- 27 Jun, 2020 3 commits
-
-
Currently, we expose the function `git_repository_shallow_roots` to get all grafted roots of the repository. This already paints us into a corner, though, as we certainly need to experiment with some functionality of the grafting mechanism before we can happily expose some of its functionality. Most importantly, we need to get right when to refresh grafts and when not. Thus, this commit removes the public function with no public replacement. We should first try and see what usecases people come up with to e.g. expose the `git_grafts` mechanism directly in the future or do something different altogether. Instead, we provide an internal interface to get weak pointers to the grafting structs part of the repository itself.
Patrick Steinhardt committed -
The shallow roots are in fact another user of the grafting mechanism, and in essence they do use the same file format for grafted commits. Thus, instead of hand-coding the parsing logic a second time, we can just reuse the `git_grafts` structure for shallow commits, as well.
Patrick Steinhardt committed -
Etienne Samson committed
-