[PATCH] object-file: fix indent-with-space
- From
Jeff King <peff@peff.net>
- Date
- Jan 12, 2023, 16:06 UTC
- Message-ID
- <Y8AwGdtrsjnBdXN7@coredump.intra.peff.net>
- In-Reply-To
- <230112.86k01s2jzm.gmgdl@evledraar.gmail.com>
On Thu, Jan 12, 2023 at 10:13:20AM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 12 quoted lines
> > On Sat, Jan 07 2023, Jeff King wrote: > > > + oi.typep = type; > > + oi.sizep = size; > > + oi.contentp = &data; > > + if (lookup_replace) > > + flags |= OBJECT_INFO_LOOKUP_REPLACE; > > + if (oid_object_info_extended(r, oid, &oi, flags)) > > + return NULL; > > Style: This is "\t ", but should be "\t\t".
Hmph, I'm not sure how I managed that. Thanks for pointing it out. The commit is in 'next', so I think we'd want this on top (of jk/read-object-cleanup).
-- >8 -- Subject: [PATCH] object-file: fix indent-with-space
Commit b25562e63f (object-file: inline calls to read_object(), 2023-01-07) accidentally indented a conditional block with spaces instead of a tab.
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Jeff King <peff@peff.net> --- object-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/object-file.c b/object-file.c index 80b08fc389..ce9efae994 100644 --- a/object-file.c +++ b/object-file.c @@ -1708,7 +1708,7 @@ void *repo_read_object_file(struct repository *r, oi.sizep = size; oi.contentp = &data; if (oid_object_info_extended(r, oid, &oi, flags)) - return NULL; + return NULL; return data; }
-- 2.39.0.508.g93b13bde48