Git development
 help / color / mirror / Atom feed
From: Patrick Steinhardt <ps@pks.im>
To: Karthik Nayak <karthik.188@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v3 2/7] setup: introduce object storage extension
Date: Mon, 26 Oct 2026 12:53:43 +0100	[thread overview]
Message-ID: <at8_RyoMSePPIUyb@pks.im> (raw)
In-Reply-To: <CAOLa=ZTwedYbV+vFJcrACohX+epp4hUXSFXYvRTZ1tJPSNaj9A@mail.gmail.com>

On Mon, Oct 26, 2026 at 04:22:38AM -0700, Karthik Nayak wrote:
> Patrick Steinhardt <ps@pks.im> writes:
> > diff --git a/odb.c b/odb.c
> > index 98c5c862f5..0649622bc6 100644
> > --- a/odb.c
> > +++ b/odb.c
> > @@ -27,6 +27,42 @@
> >  #include "trace2.h"
> >  #include "write-or-die.h"
> >
> > +static const char * const object_storage_name_by_format[] = {
> > +	[OBJECT_STORAGE_FORMAT_UNKNOWN] = "unknown",
> > +	[OBJECT_STORAGE_FORMAT_FILES] = "files",
> > +};
> > +
> 
> Super Nit: I would have dropped from this, as that is the default, this
> makes it seem like it is one of the backends. Feel free to ignore
> though.

Hm. I need the `OBJECT_STORAGE_FORMAT_UNKNOWN` enum value anyway, so if
I were to drop that backend above I'd have to add another special case
to handle the case where its value is `NULL`. So I'd prefer to keep this
as-is.

> > diff --git a/repository.h b/repository.h
> > index 2a348012e8..8c4437762e 100644
> > --- a/repository.h
> > +++ b/repository.h
> > @@ -694,6 +708,7 @@ static enum extension_result handle_extension(const char *var,
> >  		data->submodule_path_cfg = git_config_bool(var, value);
> >  		return EXTENSION_OK;
> >  	}
> > +
> 
> Nit: stray newline addition

I was confused at first because you snipped to the wrong diff header --
this is in "setup.c", not in "repository.h". Fixed now.

Patrick

  reply	other threads:[~2026-10-26 11:53 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  8:55 [PATCH 0/7] odb: introduce object storage extension Patrick Steinhardt
2026-10-19  8:55 ` [PATCH 1/7] loose: drop unused `repo_write_loose_object_map()` Patrick Steinhardt
2026-10-19 20:21   ` Karthik Nayak
2026-10-20  8:49     ` Patrick Steinhardt
2026-10-20 18:30       ` Karthik Nayak
2026-10-19  8:55 ` [PATCH 2/7] setup: introduce object storage extension Patrick Steinhardt
2026-10-19 21:29   ` Karthik Nayak
2026-10-20  1:27     ` Junio C Hamano
2026-10-20 18:32       ` Karthik Nayak
2026-10-20  8:50     ` Patrick Steinhardt
2026-10-20 19:06       ` Karthik Nayak
2026-10-19  8:55 ` [PATCH 3/7] setup: allow overriding object storage format via environment Patrick Steinhardt
2026-10-19 21:34   ` Karthik Nayak
2026-10-20  8:50     ` Patrick Steinhardt
2026-10-20 19:08       ` Karthik Nayak
2026-10-19  8:55 ` [PATCH 4/7] builtin: expose the object storage format Patrick Steinhardt
2026-10-19 21:40   ` Karthik Nayak
2026-10-20  8:50     ` Patrick Steinhardt
2026-10-20 19:10       ` Karthik Nayak
2026-10-19  8:56 ` [PATCH 5/7] builtin/init: introduce handling of " Patrick Steinhardt
2026-10-19  8:56 ` [PATCH 6/7] builtin/clone: introduce "--object-storage-format=" Patrick Steinhardt
2026-10-19  8:56 ` [PATCH 7/7] builtin/submodule: propagate "--object-storage-format=" Patrick Steinhardt
2026-10-21  5:39 ` [PATCH v2 0/7] odb: introduce object storage extension Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 1/7] loose: drop unused `repo_write_loose_object_map()` Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 2/7] setup: introduce object storage extension Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 3/7] setup: allow overriding object storage format via environment Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 4/7] builtin: expose the object storage format Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 5/7] builtin/init: introduce handling of " Patrick Steinhardt
2026-10-21 14:23     ` Karthik Nayak
2026-10-23  5:33       ` Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 6/7] builtin/clone: introduce "--object-storage-format=" Patrick Steinhardt
2026-10-21  5:39   ` [PATCH v2 7/7] builtin/submodule: propagate "--object-storage-format=" Patrick Steinhardt
2026-10-21 14:31   ` [PATCH v2 0/7] odb: introduce object storage extension Karthik Nayak
2026-10-23 11:49 ` [PATCH v3 " Patrick Steinhardt
2026-10-23 11:49   ` [PATCH v3 1/7] loose: drop unused `repo_write_loose_object_map()` Patrick Steinhardt
2026-10-23 11:49   ` [PATCH v3 2/7] setup: introduce object storage extension Patrick Steinhardt
2026-10-24 14:50     ` SZEDER Gábor
2026-10-26 10:05       ` Patrick Steinhardt
2026-10-26 11:22     ` Karthik Nayak
2026-10-26 11:53       ` Patrick Steinhardt [this message]
2026-10-23 11:49   ` [PATCH v3 3/7] setup: allow overriding object storage format via environment Patrick Steinhardt
2026-10-26 11:25     ` Karthik Nayak
2026-10-26 11:53       ` Patrick Steinhardt
2026-10-23 11:49   ` [PATCH v3 4/7] builtin: expose the object storage format Patrick Steinhardt
2026-10-23 11:49   ` [PATCH v3 5/7] builtin/init: introduce handling of " Patrick Steinhardt
2026-10-23 11:49   ` [PATCH v3 6/7] builtin/clone: introduce "--object-storage-format=" Patrick Steinhardt
2026-10-23 11:49   ` [PATCH v3 7/7] builtin/submodule: propagate "--object-storage-format=" Patrick Steinhardt
2026-10-26 11:35   ` [PATCH v3 0/7] odb: introduce object storage extension Karthik Nayak
2026-10-26 11:53     ` Patrick Steinhardt
2026-10-27  6:59 ` [PATCH v4 " Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 1/7] loose: drop unused `repo_write_loose_object_map()` Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 2/7] setup: introduce object storage extension Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 3/7] setup: allow overriding object storage format via environment Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 4/7] builtin: expose the object storage format Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 5/7] builtin/init: introduce handling of " Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 6/7] builtin/clone: introduce "--object-storage-format=" Patrick Steinhardt
2026-10-27  6:59   ` [PATCH v4 7/7] builtin/submodule: propagate "--object-storage-format=" Patrick Steinhardt

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=at8_RyoMSePPIUyb@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