From: Patrick Steinhardt <ps@pks.im>
To: git@vger.kernel.org
Subject: [PATCH 6/6] odb: drop unneeded headers and forward decls
Date: Wed, 01 Apr 2026 01:57:51 +0200 [thread overview]
Message-ID: <20260401-pks-odb-cleanups-v1-6-89adba9ada68@pks.im> (raw)
In-Reply-To: <20260401-pks-odb-cleanups-v1-0-89adba9ada68@pks.im>
There's a couple of unneeded forward declarations and headers in
"odb.h". Drop these.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
---
odb.h | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/odb.h b/odb.h
index 8d739e118b..3a711f6547 100644
--- a/odb.h
+++ b/odb.h
@@ -1,19 +1,17 @@
#ifndef ODB_H
#define ODB_H
-#include "hashmap.h"
#include "object.h"
#include "oidset.h"
#include "oidmap.h"
#include "string-list.h"
#include "thread-utils.h"
-struct oidmap;
-struct oidtree;
+struct cached_object_entry;
+struct packed_git;
+struct repository;
struct strbuf;
struct strvec;
-struct repository;
-struct multi_pack_index;
/*
* Set this to 0 to prevent odb_read_object_info_extended() from fetching missing
@@ -31,10 +29,6 @@ extern int fetch_if_missing;
*/
char *compute_alternate_path(const char *path, struct strbuf *err);
-struct packed_git;
-struct packfile_store;
-struct cached_object_entry;
-
/*
* A transaction may be started for an object database prior to writing new
* objects via odb_transaction_begin(). These objects are not committed until
--
2.53.0.1185.g05d4b7b318.dirty
prev parent reply other threads:[~2026-03-31 23:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 23:57 [PATCH 0/6] odb: small set of cleanups Patrick Steinhardt
2026-03-31 23:57 ` [PATCH 1/6] CodingGuidelines: document our style for flags Patrick Steinhardt
2026-03-31 23:57 ` [PATCH 2/6] treewide: use enum for `odb_for_each_object()` flags Patrick Steinhardt
2026-03-31 23:57 ` [PATCH 3/6] odb: rename `odb_write_object()` flags Patrick Steinhardt
2026-03-31 23:57 ` [PATCH 4/6] odb: use enum for `odb_write_object` flags Patrick Steinhardt
2026-03-31 23:57 ` [PATCH 5/6] odb: rename `odb_has_object()` flags Patrick Steinhardt
2026-03-31 23:57 ` Patrick Steinhardt [this message]
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260401-pks-odb-cleanups-v1-6-89adba9ada68@pks.im \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).