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

Re: [PATCH] revision.h: add includes of "diff.h" and "commit.h"

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Apr 5, 2009, 07:28 UTC
Message-ID
<20090405162841.6117@nanako3.lavabit.com>
In-Reply-To
<20090404214554.75ada117.chriscool@tuxfamily.org>
Quoting Christian Couder <chriscool@tuxfamily.org>:
Show 10 quoted lines
> Because they are needed by some features included in
> "revision.h".
>
> This makes the following just work:
>
>         $ cat >1.c <<\EOF
>         #include "cache.h"
>         #include "revision.h"
>         EOF
>         $ cc -Wall -DSHA1_HEADER='<openssl/sha.h>' -c 1.c
I'm sorry if this is obvious to experienced people, but I don't understand what benefit there is to make such an empty program compilable.
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Christian CouderNext: Junio C Hamano
Message 2 of 3 in “revision.h: add includes of "diff.h" and "commit.h"”
  1. revision.h: add includes of "diff.h" and "commit.h"Christian Couder, Apr 4, 2009
  2. Nanako ShiraishiApr 5, 2009
  3. Junio C HamanoApr 5, 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.