Browse Source

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>
main
Elijah Newren 2 years ago committed by Junio C Hamano
parent
commit
fc7bd51b06
  1. 4
      advice.c
  2. 3
      decorate.c
  3. 3
      diffcore-order.c
  4. 6
      diffcore-rename.c
  5. 3
      diffcore-rotate.c
  6. 3
      graph.c
  7. 5
      hook.c
  8. 1
      quote.c
  9. 3
      sha1dc_git.c
  10. 3
      unix-socket.c
  11. 3
      url.c
  12. 4
      urlmatch.c

4
advice.c

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



3
decorate.c

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



3
diffcore-order.c

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



6
diffcore-rename.c

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


/* Table of rename/copy destinations */ /* Table of rename/copy destinations */



3
diffcore-rotate.c

@ -2,7 +2,8 @@
* Copyright (C) 2021, Google LLC. * Copyright (C) 2021, Google LLC.
* Based on diffcore-order.c, which is Copyright (C) 2005, Junio C Hamano * 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 "diff.h"
#include "diffcore.h" #include "diffcore.h"



3
graph.c

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

5
hook.c

@ -1,7 +1,10 @@
#include "cache.h" #include "git-compat-util.h"
#include "advice.h"
#include "gettext.h"
#include "hook.h" #include "hook.h"
#include "run-command.h" #include "run-command.h"
#include "config.h" #include "config.h"
#include "strbuf.h"


const char *find_hook(const char *name) const char *find_hook(const char *name)
{ {

1
quote.c

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


int quote_path_fully = 1; int quote_path_fully = 1;

3
sha1dc_git.c

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


#ifdef DC_SHA1_EXTERNAL #ifdef DC_SHA1_EXTERNAL

3
unix-socket.c

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


#define DEFAULT_UNIX_STREAM_LISTEN_BACKLOG (5) #define DEFAULT_UNIX_STREAM_LISTEN_BACKLOG (5)

3
url.c

@ -1,5 +1,6 @@
#include "cache.h" #include "git-compat-util.h"
#include "hex.h" #include "hex.h"
#include "strbuf.h"
#include "url.h" #include "url.h"


int is_urlschemechar(int first_flag, int ch) int is_urlschemechar(int first_flag, int ch)

4
urlmatch.c

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


#define URL_ALPHA "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" #define URL_ALPHA "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Loading…
Cancel
Save