radicle-heartwood-lfs/radicle-cob/src
Vincenzo Palazzo b29321dbf7
cob: Fix recursion bug in TryFrom of Reference
This commit addresses the issue of recursion in the TryFrom
call of Reference by resolving the parent in a lazy way.

Due to constraints posed by the need to access `git2::Repository`
or `git2::Commit` to resolve the parent, this commit decides to
pull out the parent resolution logic from the `cob::object::Commit`
module and move it inside the `cob::store::Store` implementation by adding
a new method `parents_of`.

Suggested-by: Fintan Halpenny <fintan.halpenny@gmail.com>
Tested-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2023-05-09 10:11:36 +02:00
..
backend cob: Fix recursion bug in TryFrom of Reference 2023-05-09 10:11:36 +02:00
change cob: Fix recursion bug in TryFrom of Reference 2023-05-09 10:11:36 +02:00
change_graph Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
history Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
object cob: Fix recursion bug in TryFrom of Reference 2023-05-09 10:11:36 +02:00
signatures Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
test cob: Fix recursion bug in TryFrom of Reference 2023-05-09 10:11:36 +02:00
backend.rs Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
change.rs Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
change_graph.rs cob: Fix recursion bug in TryFrom of Reference 2023-05-09 10:11:36 +02:00
history.rs Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
lib.rs Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
object.rs radicle: update radicle-git-ext 2023-05-08 10:36:15 +01:00
pruning_fold.rs Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
sign.rs Update license for `radicle-cob` 2023-04-23 15:20:35 +02:00
signatures.rs radicle: update radicle-git-ext 2023-05-08 10:36:15 +01:00
test.rs radicle-cob: test parse_refstr 2022-11-17 17:42:22 +00:00
tests.rs radicle: update radicle-git-ext 2023-05-08 10:36:15 +01:00
trailers.rs radicle: update radicle-git-ext 2023-05-08 10:36:15 +01:00
type_name.rs radicle: update radicle-git-ext 2023-05-08 10:36:15 +01:00