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

Re: [PATCH] abspath.h is created.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 28, 2022, 17:58 UTC
Message-ID
<xmqqpmfftm7a.fsf@gitster.g>
In-Reply-To
<CA+J78MXbXG4M1w50EAM8t0VkYP_saCt9O90jFKad3+cB+RCZ-Q@mail.gmail.com>
Skrab Sah <skrab.sah@gmail.com> writes:
> What is wrong here and what should i do to make it correct.
Almost everything in what the patch is wrong.
 * It creates <abspath.h> as a tracked file, but has a funny comment
   with control-G in it that says "do not edit"
 * It is entirely unclear how the contents of <abspath.h> is meant
   to evolve, if the contributors are forbidden to edit it, and
   without any instruction how to update it.
 * The new <abspath.h> lost all function comments, grouping by
   category, etc. that were in the original <cache.h>.
 * There is an "#undef INTERFACE" that has no use to us, those who
   develop Git, for no clearly explained reason.
 * The proposed log message says what it did, but it does not even
   try to justify why it is a good idea to do so.
 * There is no need to create a new <abspath.h> in the first place.
   If we were in an alternate world where we did not have
   <abspath.c>, it may be reasonable to add <abspath.h> along with
   it, instead of adding declarations for new functions and types in
   <cache.h>.  But the difference falls into "once it is in, it is
   not worth the patch churn to change it" category.
The easiest way to make it correct is to drop it, I guess.
Thanks.
Previous: Taylor Blau
Message 5 of 5 in “abspath.h is created.”
  1. abspath.h is created.skrab-sah via GitGitGadget, Sep 27, 2022
  2. Junio C HamanoSep 28, 2022
  3. Skrab SahSep 28, 2022
  4. Taylor BlauSep 28, 2022
  5. Junio C HamanoSep 28, 2022

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.