aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2007-09-15 15:56:50 +0200
committerJunio C Hamano <gitster@pobox.com>2007-09-16 17:30:03 -0700
commitba3ed09728cb25e004d3b732de14fca8aeb602f6 (patch)
tree754e598727a4a19bd2d5c7b17813dc1c25b63790
parent5ecd293d1420bf641a927a015877950f4d79c067 (diff)
downloadgit-ba3ed09728cb25e004d3b732de14fca8aeb602f6.tar.gz
git-ba3ed09728cb25e004d3b732de14fca8aeb602f6.tar.xz
Now that cache.h needs strbuf.h, remove useless includes.
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--archive-tar.c1
-rw-r--r--builtin-apply.c1
-rw-r--r--builtin-blame.c1
-rw-r--r--builtin-checkout-index.c1
-rw-r--r--builtin-commit-tree.c1
-rw-r--r--builtin-fetch--tool.c1
-rw-r--r--builtin-rerere.c1
-rw-r--r--builtin-stripspace.c1
-rw-r--r--builtin-tag.c1
-rw-r--r--builtin-update-index.c1
-rw-r--r--cache-tree.c1
-rw-r--r--convert.c1
-rw-r--r--diff.c1
-rw-r--r--fast-import.c1
-rw-r--r--fetch.c1
-rw-r--r--imap-send.c1
-rw-r--r--mktag.c1
-rw-r--r--mktree.c1
-rw-r--r--sha1_file.c1
-rw-r--r--strbuf.c1
20 files changed, 0 insertions, 20 deletions
diff --git a/archive-tar.c b/archive-tar.c
index cc94cf367..a87bc4b83 100644
--- a/archive-tar.c
+++ b/archive-tar.c
@@ -3,7 +3,6 @@
*/
#include "cache.h"
#include "commit.h"
-#include "strbuf.h"
#include "tar.h"
#include "builtin.h"
#include "archive.h"
diff --git a/builtin-apply.c b/builtin-apply.c
index e5c29ebf3..1256716ae 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -12,7 +12,6 @@
#include "blob.h"
#include "delta.h"
#include "builtin.h"
-#include "strbuf.h"
/*
* --check turns on checking that the working tree matches the
diff --git a/builtin-blame.c b/builtin-blame.c
index b004f06cd..e364b6c6c 100644
--- a/builtin-blame.c
+++ b/builtin-blame.c
@@ -18,7 +18,6 @@
#include "cache-tree.h"
#include "path-list.h"
#include "mailmap.h"
-#include "strbuf.h"
static char blame_usage[] =
"git-blame [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] [-L n,m] [-S <revs-file>] [-M] [-C] [-C] [--contents <filename>] [--incremental] [commit] [--] file\n"
diff --git a/builtin-checkout-index.c b/builtin-checkout-index.c
index 153ba7dc1..85e8efe22 100644
--- a/builtin-checkout-index.c
+++ b/builtin-checkout-index.c
@@ -38,7 +38,6 @@
*/
#include "builtin.h"
#include "cache.h"
-#include "strbuf.h"
#include "quote.h"
#include "cache-tree.h"
diff --git a/builtin-commit-tree.c b/builtin-commit-tree.c
index 325334fd6..88b0ab36e 100644
--- a/builtin-commit-tree.c
+++ b/builtin-commit-tree.c
@@ -8,7 +8,6 @@
#include "tree.h"
#include "builtin.h"
#include "utf8.h"
-#include "strbuf.h"
#define BLOCKING (1ul << 14)
diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c
index 90bdc32d1..514a3cc01 100644
--- a/builtin-fetch--tool.c
+++ b/builtin-fetch--tool.c
@@ -2,7 +2,6 @@
#include "cache.h"
#include "refs.h"
#include "commit.h"
-#include "strbuf.h"
static char *get_stdin(void)
{
diff --git a/builtin-rerere.c b/builtin-rerere.c
index 826d346fb..58288f61a 100644
--- a/builtin-rerere.c
+++ b/builtin-rerere.c
@@ -1,7 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "path-list.h"
-#include "strbuf.h"
#include "xdiff/xdiff.h"
#include "xdiff-interface.h"
diff --git a/builtin-stripspace.c b/builtin-stripspace.c
index c4cf2f05c..1ce284710 100644
--- a/builtin-stripspace.c
+++ b/builtin-stripspace.c
@@ -1,6 +1,5 @@
#include "builtin.h"
#include "cache.h"
-#include "strbuf.h"
/*
* Returns the length of a line, without trailing spaces.
diff --git a/builtin-tag.c b/builtin-tag.c
index 9f293421d..82ebda11b 100644
--- a/builtin-tag.c
+++ b/builtin-tag.c
@@ -8,7 +8,6 @@
#include "cache.h"
#include "builtin.h"
-#include "strbuf.h"
#include "refs.h"
#include "tag.h"
#include "run-command.h"
diff --git a/builtin-update-index.c b/builtin-update-index.c
index 9240a288a..1091f1b26 100644
--- a/builtin-update-index.c
+++ b/builtin-update-index.c
@@ -4,7 +4,6 @@
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
-#include "strbuf.h"
#include "quote.h"
#include "cache-tree.h"
#include "tree-walk.h"
diff --git a/cache-tree.c b/cache-tree.c
index 8f53c99f1..5471844af 100644
--- a/cache-tree.c
+++ b/cache-tree.c
@@ -1,5 +1,4 @@
#include "cache.h"
-#include "strbuf.h"
#include "tree.h"
#include "cache-tree.h"
diff --git a/convert.c b/convert.c
index 00a341c59..508d30b2f 100644
--- a/convert.c
+++ b/convert.c
@@ -1,7 +1,6 @@
#include "cache.h"
#include "attr.h"
#include "run-command.h"
-#include "strbuf.h"
/*
* convert.c - convert a file when checking it out and checking it in.
diff --git a/diff.c b/diff.c
index f41bcd94a..56b672c4f 100644
--- a/diff.c
+++ b/diff.c
@@ -9,7 +9,6 @@
#include "xdiff-interface.h"
#include "color.h"
#include "attr.h"
-#include "strbuf.h"
#ifdef NO_FAST_WORKING_DIRECTORY
#define FAST_WORKING_DIRECTORY 0
diff --git a/fast-import.c b/fast-import.c
index 2c0bfb9fa..1866d346b 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -149,7 +149,6 @@ Format of STDIN stream:
#include "pack.h"
#include "refs.h"
#include "csum-file.h"
-#include "strbuf.h"
#include "quote.h"
#define PACK_ID_BITS 16
diff --git a/fetch.c b/fetch.c
index dd6ed9e41..c256e6f6b 100644
--- a/fetch.c
+++ b/fetch.c
@@ -6,7 +6,6 @@
#include "tag.h"
#include "blob.h"
#include "refs.h"
-#include "strbuf.h"
int get_tree = 0;
int get_history = 0;
diff --git a/imap-send.c b/imap-send.c
index ecd4216a5..86e4a0f6a 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -23,7 +23,6 @@
*/
#include "cache.h"
-#include "strbuf.h"
typedef struct store_conf {
char *name;
diff --git a/mktag.c b/mktag.c
index 7567f9ec2..b05260c83 100644
--- a/mktag.c
+++ b/mktag.c
@@ -1,5 +1,4 @@
#include "cache.h"
-#include "strbuf.h"
#include "tag.h"
/*
diff --git a/mktree.c b/mktree.c
index 3891cd9fb..5dab4bd36 100644
--- a/mktree.c
+++ b/mktree.c
@@ -4,7 +4,6 @@
* Copyright (c) Junio C Hamano, 2006
*/
#include "cache.h"
-#include "strbuf.h"
#include "quote.h"
#include "tree.h"
diff --git a/sha1_file.c b/sha1_file.c
index 64b5b4669..59325d46b 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -14,7 +14,6 @@
#include "tag.h"
#include "tree.h"
#include "refs.h"
-#include "strbuf.h"
#ifndef O_NOATIME
#if defined(__linux__) && (defined(__i386__) || defined(__PPC__))
diff --git a/strbuf.c b/strbuf.c
index ff551ac9f..c5f9e2a28 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -1,5 +1,4 @@
#include "cache.h"
-#include "strbuf.h"
void strbuf_init(struct strbuf *sb, size_t hint)
{