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

[PATCH] sha1_name.c: no need to include diff.h; tree-walk.h will do.

From
Junio C Hamano <junkio@cox.net>
Date
Apr 19, 2006, 20:01 UTC
Message-ID
<7v1wvt8hdb.fsf@assigned-by-dhcp.cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 * Just a clean-up, comes on top of the one that returns mode
   from get_tree_entry().
 sha1_name.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sha1_name.c b/sha1_name.c
index 35e8dfb..7ad20b5 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -3,7 +3,7 @@ #include "tag.h"
 #include "commit.h"
 #include "tree.h"
 #include "blob.h"
-#include "diff.h"
+#include "tree-walk.h"
 
 static int find_short_object_filename(int len, const char *name, unsigned char *sha1)
 {
-- 
1.3.0.g2c4a
Next: Linus Torvalds
Message 1 of 2 in “sha1_name.c: no need to include diff.h; tree-walk.h will do.”
  1. sha1_name.c: no need to include diff.h; tree-walk.h will do.Junio C Hamano, Apr 19, 2006
  2. Linus TorvaldsApr 19, 2006

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.