treewide: remove unnecessary cache.h inclusion

Several files were including cache.h solely to get other headers, such
as trace.h and trace2.h.  Since the last few commits have modified
files to make these dependencies more explicit, the inclusion of cache.h
is no longer needed in several cases.  Remove it.

Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Elijah Newren 2023-04-11 00:41:48 -07:00 committed by Junio C Hamano
parent 5bc07225e5
commit 5579f44d2f
10 changed files with 8 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#include "cache.h" #include "git-compat-util.h"
#include "gettext.h" #include "gettext.h"
#include "simple-ipc.h" #include "simple-ipc.h"
#include "strbuf.h" #include "strbuf.h"

View File

@ -1,5 +1,4 @@
#include "git-compat-util.h" #include "git-compat-util.h"
#include "cache.h"
#include "config.h" #include "config.h"
#include "environment.h" #include "environment.h"
#include "gettext.h" #include "gettext.h"

View File

@ -1,4 +1,4 @@
#include "cache.h" #include "git-compat-util.h"
#include "alloc.h" #include "alloc.h"
#include "repository.h" #include "repository.h"
#include "config.h" #include "config.h"

View File

@ -1,4 +1,4 @@
#include "cache.h" #include "git-compat-util.h"
#include "environment.h" #include "environment.h"
#include "gettext.h" #include "gettext.h"
#include "hex.h" #include "hex.h"

View File

@ -1,4 +1,4 @@
#include "cache.h" #include "git-compat-util.h"
#include "gettext.h" #include "gettext.h"
#include "hex.h" #include "hex.h"
#include "object-store.h" #include "object-store.h"

View File

@ -1,4 +1,4 @@
#include "cache.h" #include "git-compat-util.h"
#include "config.h" #include "config.h"
#include "environment.h" #include "environment.h"
#include "protocol.h" #include "protocol.h"

View File

@ -2,7 +2,7 @@
* The Scalar command-line interface. * The Scalar command-line interface.
*/ */
#include "cache.h" #include "git-compat-util.h"
#include "abspath.h" #include "abspath.h"
#include "gettext.h" #include "gettext.h"
#include "parse-options.h" #include "parse-options.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h" #include "test-tool.h"
#include "cache.h"
#include "date.h" #include "date.h"
#include "trace.h" #include "trace.h"

View File

@ -21,7 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "cache.h" #include "git-compat-util.h"
#include "abspath.h" #include "abspath.h"
#include "environment.h" #include "environment.h"
#include "quote.h" #include "quote.h"

View File

@ -1,4 +1,4 @@
#include "cache.h" #include "git-compat-util.h"
#include "config.h" #include "config.h"
#include "environment.h" #include "environment.h"
#include "gettext.h" #include "gettext.h"