From: Patrick Steinhardt <ps@pks.im>
To: Karthik Nayak <karthik.188@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 02/13] commit-graph: stop depending on `struct odb_source`
Date: Tue, 6 Oct 2026 14:18:20 +0200 [thread overview]
Message-ID: <asTnDMrTjUWHVSwR@pks.im> (raw)
In-Reply-To: <CAOLa=ZSNHWFw5Vj_5qg16ipp1QA0pDcV8h=hOA=ma4hy6F_LcQ@mail.gmail.com>
On Mon, Oct 05, 2026 at 03:43:44PM -0400, Karthik Nayak wrote:
> Patrick Steinhardt <ps@pks.im> writes:
>
> [snip]
Thanks for trimming! One more ask though: it's helpful to retain the
diff header itself so that one knows which file this is that you are
commenting on :)
> > @@ -28,7 +29,7 @@
> > #include "tree.h"
> > #include "chunk-format.h"
> >
> > -void git_test_write_commit_graph_or_die(struct odb_source *source)
> > +void git_test_write_commit_graph_or_die(struct repository *repo)
> > {
> > int flags = 0;
> > if (!git_env_bool(GIT_TEST_COMMIT_GRAPH, 0))
> > @@ -37,7 +38,7 @@ void git_test_write_commit_graph_or_die(struct odb_source *source)
> > if (git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0))
> > flags = COMMIT_GRAPH_WRITE_BLOOM_FILTERS;
> >
> > - if (write_commit_graph_reachable(source, flags, NULL))
> > + if (write_commit_graph_reachable(repo, repo->objects->sources->path, flags, NULL))
> > die("failed to write commit-graph under GIT_TEST_COMMIT_GRAPH");
> > }
> >
>
> Shouldn't the caller of `git_test_write_commit_graph_or_die()` send in
> (repo, path) and we forward that path, instead of using the path from
> `repo->objects->sources->path`?
I'd agree if this were a properly designed function. But it's basically
just a hack for our test suite, so I was aiming for the easiest fix
possible to make this work.
Patrick
next prev parent reply other threads:[~2026-10-06 12:18 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 10:08 [PATCH 00/13] odb/source-files: move alternates into the backend Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 01/13] commit-graph: require resolved packfile paths for `stdin_packs` Patrick Steinhardt
2026-10-05 19:27 ` Karthik Nayak
2026-10-06 12:18 ` Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 02/13] commit-graph: stop depending on `struct odb_source` Patrick Steinhardt
2026-10-05 19:43 ` Karthik Nayak
2026-10-06 12:18 ` Patrick Steinhardt [this message]
2026-10-06 20:11 ` Karthik Nayak
2026-10-02 10:08 ` [PATCH 03/13] odb/source-files: introduce `struct odb_files_dir` Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 04/13] odb: refactor `odb_for_each_alternate()` to yield dirs Patrick Steinhardt
2026-10-06 8:42 ` Karthik Nayak
2026-10-02 10:08 ` [PATCH 05/13] odb: refactor `odb_find_source()` " Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 06/13] odb/source-files: add the ability to have multiple object dirs Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 07/13] tmp-objdir: absorb logic to set and restore primary sources Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 08/13] tmp-objdir: manage quarantine as an object directory Patrick Steinhardt
2026-10-06 20:18 ` Karthik Nayak
2026-10-06 20:27 ` Karthik Nayak
2026-10-02 10:08 ` [PATCH 09/13] tmp-objdir: replace primary source at creation time Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 10/13] odb/source: make `will_destroy` an implementation detail Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 11/13] odb/source-files: extract reading alternates Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 12/13] odb/source-files: move alternates into the backend Patrick Steinhardt
2026-10-06 20:51 ` Karthik Nayak
2026-10-07 5:50 ` Patrick Steinhardt
2026-10-02 10:08 ` [PATCH 13/13] odb/source: drop `read_alternates` callback Patrick Steinhardt
2026-10-06 20:53 ` [PATCH 00/13] odb/source-files: move alternates into the backend Karthik Nayak
2026-10-07 5:50 ` Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 " Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 01/13] commit-graph: require resolved packfile paths for `stdin_packs` Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 02/13] commit-graph: stop depending on `struct odb_source` Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 03/13] odb/source-files: introduce `struct odb_files_dir` Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 04/13] odb: refactor `odb_for_each_alternate()` to yield dirs Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 05/13] odb: refactor `odb_find_source()` " Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 06/13] odb/source-files: add the ability to have multiple object dirs Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 07/13] tmp-objdir: absorb logic to set and restore primary sources Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 08/13] tmp-objdir: manage quarantine as an object directory Patrick Steinhardt
2026-10-08 8:35 ` [PATCH v2 09/13] tmp-objdir: replace primary source at creation time Patrick Steinhardt
2026-10-08 8:36 ` [PATCH v2 10/13] odb/source: make `will_destroy` an implementation detail Patrick Steinhardt
2026-10-08 8:36 ` [PATCH v2 11/13] odb/source-files: extract reading alternates Patrick Steinhardt
2026-10-08 8:36 ` [PATCH v2 12/13] odb/source-files: move alternates into the backend Patrick Steinhardt
2026-10-08 8:36 ` [PATCH v2 13/13] odb/source: drop `read_alternates` callback Patrick Steinhardt
2026-10-08 9:24 ` [PATCH v2 00/13] odb/source-files: move alternates into the backend Karthik Nayak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=asTnDMrTjUWHVSwR@pks.im \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
--cc=karthik.188@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox