1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-04-20 08:04:09 +02:00

treewide: replace cache.h with more direct headers, where possible

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Elijah Newren 2023-02-24 00:09:34 +00:00 committed by Junio C Hamano
parent cbeab74713
commit fc7bd51b06
12 changed files with 30 additions and 11 deletions

View File

@ -1,6 +1,8 @@
#include "cache.h"
#include "git-compat-util.h"
#include "advice.h"
#include "config.h"
#include "color.h"
#include "gettext.h"
#include "help.h"
#include "string-list.h"

View File

@ -2,7 +2,8 @@
* decorate.c - decorate a git object with some arbitrary
* data.
*/
#include "cache.h"
#include "git-compat-util.h"
#include "hashmap.h"
#include "object.h"
#include "decorate.h"

View File

@ -1,7 +1,8 @@
/*
* Copyright (C) 2005 Junio C Hamano
*/
#include "cache.h"
#include "git-compat-util.h"
#include "gettext.h"
#include "diff.h"
#include "diffcore.h"

View File

@ -2,15 +2,19 @@
*
* Copyright (C) 2005 Junio C Hamano
*/
#include "cache.h"
#include "git-compat-util.h"
#include "alloc.h"
#include "diff.h"
#include "diffcore.h"
#include "object-store.h"
#include "hashmap.h"
#include "mem-pool.h"
#include "oid-array.h"
#include "progress.h"
#include "promisor-remote.h"
#include "string-list.h"
#include "strmap.h"
#include "trace2.h"
/* Table of rename/copy destinations */

View File

@ -2,7 +2,8 @@
* Copyright (C) 2021, Google LLC.
* Based on diffcore-order.c, which is Copyright (C) 2005, Junio C Hamano
*/
#include "cache.h"
#include "git-compat-util.h"
#include "gettext.h"
#include "diff.h"
#include "diffcore.h"

View File

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

5
hook.c
View File

@ -1,7 +1,10 @@
#include "cache.h"
#include "git-compat-util.h"
#include "advice.h"
#include "gettext.h"
#include "hook.h"
#include "run-command.h"
#include "config.h"
#include "strbuf.h"
const char *find_hook(const char *name)
{

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "alloc.h"
#include "quote.h"
#include "strbuf.h"
#include "strvec.h"
int quote_path_fully = 1;

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "git-compat-util.h"
#include "sha1dc_git.h"
#include "hex.h"
#ifdef DC_SHA1_EXTERNAL

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "git-compat-util.h"
#include "strbuf.h"
#include "unix-socket.h"
#define DEFAULT_UNIX_STREAM_LISTEN_BACKLOG (5)

3
url.c
View File

@ -1,5 +1,6 @@
#include "cache.h"
#include "git-compat-util.h"
#include "hex.h"
#include "strbuf.h"
#include "url.h"
int is_urlschemechar(int first_flag, int ch)

View File

@ -1,5 +1,7 @@
#include "cache.h"
#include "git-compat-util.h"
#include "gettext.h"
#include "hex.h"
#include "strbuf.h"
#include "urlmatch.h"
#define URL_ALPHA "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"