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

Re: [PATCH] statinfo.h: move DTYPE defines from dir.h

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 3, 2023, 02:30 UTC
Message-ID
<xmqq4jnp6zvv.fsf@gitster.g>
In-Reply-To
<CABPp-BHZ6a8VEuK=miMAcBG9RbUz+epuQ+d1xvwbRj_tsnYqcQ@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
> There are two _different_ things named "struct dir_entry" in the codebase:

In the longer term, we should rename such a local type to avoid name clashes with the global one. But I of course am OK to leave it outside the topic to clean it up.

In any case, it is worth saying in the proposed log message why name-hash cannot use cache.h if we make it include dir.h; it is easy to do so (i.e. "it has its own 'dir_entry' that is used for other purpose").

Thanks.
Previous: Elijah NewrenNext: Alejandro Sedeño
Message 9 of 12 in “statinfo.h: move DTYPE defines from dir.h”
  1. statinfo.h: move DTYPE defines from dir.hAleajndro R Sedeño, Jun 2, 2023
  2. Alejandro SedeñoJun 2, 2023
  3. Eric SunshineJun 2, 2023
  4. Alejandro SedeñoJun 2, 2023
  5. statinfo.h: move DTYPE defines from dir.hAlejandro R Sedeño, Jun 2, 2023
  6. Elijah NewrenJun 3, 2023
  7. Junio C HamanoJun 3, 2023
  8. Elijah NewrenJun 3, 2023
  9. Junio C HamanoJun 3, 2023
  10. Alejandro SedeñoJun 3, 2023
  11. statinfo.h: move DTYPE defines from dir.hAlejandro R Sedeño, Jun 6, 2023
  12. Junio C HamanoJun 12, 2023

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.