Browse Source

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>
main
Elijah Newren 2 years ago committed by Junio C Hamano
parent
commit
5579f44d2f
  1. 2
      compat/simple-ipc/ipc-unix-socket.c
  2. 1
      connect.c
  3. 2
      fetch-pack.c
  4. 2
      pack-write.c
  5. 2
      promisor-remote.c
  6. 2
      protocol.c
  7. 2
      scalar.c
  8. 1
      t/helper/test-date.c
  9. 2
      trace.c
  10. 2
      upload-pack.c

2
compat/simple-ipc/ipc-unix-socket.c

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

1
connect.c

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

2
fetch-pack.c

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

2
pack-write.c

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

2
promisor-remote.c

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

2
protocol.c

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

2
scalar.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
* The Scalar command-line interface.
*/

#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "gettext.h"
#include "parse-options.h"

1
t/helper/test-date.c

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


2
trace.c

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "environment.h"
#include "quote.h"

2
upload-pack.c

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

Loading…
Cancel
Save