![]() Refactor `parse_commit_graph()` so that it takes a repository instead of
taking repository settings. On the one hand this allows us to get rid of
instances where we access `the_hash_algo` by using the repository's hash
algorithm instead. On the other hand it also allows us to move the call
of `prepare_repo_settings()` into the function itself.
Note that there's one small catch, as the commit-graph fuzzer calls this
function directly without having a fully functional repository at hand.
And while the fuzzer already initializes `the_repository` with relevant
info, the call to `prepare_repo_settings()` would fail because we don't
have a fully-initialized repository.
Work around the issue by also settings `settings.initialized` to pretend
that we've already read the settings.
While at it, remove the redundant `parse_commit_graph()` declaration in
the fuzzer. It was added together with
|
||
---|---|---|
.. | ||
.gitignore | ||
dummy-cmd-main.c | ||
fuzz-commit-graph.c | ||
fuzz-config.c | ||
fuzz-credential-from-url-gently.c | ||
fuzz-date.c | ||
fuzz-pack-headers.c | ||
fuzz-pack-idx.c | ||
fuzz-parse-attr-line.c | ||
fuzz-url-decode-mem.c | ||
meson.build |