git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/5] Header includes cleanup

From
NDNathaniel P Dawson <nathaniel.dawson@gmail.com>
Date
Mar 30, 2009, 09:55 UTC
Message-ID
<1238406925-15907-3-git-send-email-nathaniel.dawson@gmail.com>
In-Reply-To
<1238406925-15907-2-git-send-email-nathaniel.dawson@gmail.com>
Deleted header includes of object.h where blob.h was included since blob.h includes it.
Signed-off-by: Nathaniel P Dawson <nathaniel.dawson@gmail.com>
---
 alloc.c                  |    1 -
 builtin-for-each-ref.c   |    1 -
 builtin-pack-objects.c   |    1 -
 builtin-unpack-objects.c |    3 +--
 fast-import.c            |    1 -
 fsck.c                   |    1 -
 object.c                 |    1 -
 7 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/alloc.c b/alloc.c
index 216c23a..5b3d4a2 100644
--- a/alloc.c
+++ b/alloc.c
@@ -10,7 +10,6 @@
  * for the new allocation is.
  */
 #include "cache.h"
-#include "object.h"
 #include "blob.h"
 #include "tree.h"
 #include "commit.h"
diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c
index ab9bfa4..6cbfb03 100644
--- a/builtin-for-each-ref.c
+++ b/builtin-for-each-ref.c
@@ -1,6 +1,5 @@
 #include "builtin.h"
 #include "blob.h"
-#include "object.h"
 #include "refs.h"
 #include "tag.h"
 #include "tree.h"
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index fe7a8de..c53147a 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1,6 +1,5 @@
 #include "builtin.h"
 #include "attr.h"
-#include "object.h"
 #include "blob.h"
 #include "tag.h"
 #include "tree.h"
diff --git a/builtin-unpack-objects.c b/builtin-unpack-objects.c
index 4f5495d..674bede 100644
--- a/builtin-unpack-objects.c
+++ b/builtin-unpack-objects.c
@@ -1,8 +1,7 @@
 #include "builtin.h"
-#include "object.h"
+#include "blob.h"
 #include "delta.h"
 #include "pack.h"
-#include "blob.h"
 #include "tag.h"
 #include "tree.h"
 #include "tree-walk.h"
diff --git a/fast-import.c b/fast-import.c
index e3c138f..8d1d9f3 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -141,7 +141,6 @@ Format of STDIN stream:
 */
 
 #include "builtin.h"
-#include "object.h"
 #include "blob.h"
 #include "tree.h"
 #include "delta.h"
diff --git a/fsck.c b/fsck.c
index 511b82c..e903f6a 100644
--- a/fsck.c
+++ b/fsck.c
@@ -1,5 +1,4 @@
 #include "cache.h"
-#include "object.h"
 #include "blob.h"
 #include "tree.h"
 #include "tree-walk.h"
diff --git a/object.c b/object.c
index 7e6a92c..380652f 100644
--- a/object.c
+++ b/object.c
@@ -1,5 +1,4 @@
 #include "cache.h"
-#include "object.h"
 #include "blob.h"
 #include "tree.h"
 #include "commit.h"
-- 
1.6.1.3
Previous: Nathaniel P DawsonNext: Nathaniel P Dawson
Message 3 of 17 in “Header includes cleanup”
  1. 0/5 Header includes cleanupNathaniel P Dawson, Mar 30, 2009
  2. 1/5 Header includes cleanupNathaniel P Dawson, Mar 30, 2009
  3. 2/5 Header includes cleanupNathaniel P Dawson, Mar 30, 2009
  4. 3/5 Header includes cleanupNathaniel P Dawson, Mar 30, 2009
  5. 4/5 Header includes cleanupNathaniel P Dawson, Mar 30, 2009
  6. 5/5 Header includes cleanupNathaniel P Dawson, Mar 30, 2009
  7. Johannes SixtMar 30, 2009
  8. Nathaniel P DawsonMar 30, 2009
  9. Christian CouderMar 31, 2009
  10. Junio C HamanoMar 31, 2009
  11. Christian CouderApr 2, 2009
  12. Junio C HamanoApr 2, 2009
  13. Jeff KingApr 2, 2009
  14. Christian CouderApr 3, 2009
  15. Jeff KingApr 3, 2009
  16. Christian CouderApr 3, 2009
  17. Christian CouderMar 31, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.