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

Re: [PATCH] rename dirlink to gitlink.

From
Junio C Hamano <junkio@cox.net>
Date
May 21, 2007, 23:32 UTC
Message-ID
<7vodkdbvmk.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e7bda7770705211612w3ce1b7dew8d48f1ddeb7d100e@mail.gmail.com>
"Torgil Svensson" <torgil.svensson@gmail.com> writes:
Show 8 quoted lines
> On 5/21/07, Martin Waitz <tali@admingilde.org> wrote:
>> Unify naming of plumbing dirlink/gitlink concept:
>>
>> perl -pi -e 's/dirlink/gitlink/g' -e 's/DIRLNK/GITLINK/g'
>> ---
>
> Does this mean that the link doesn't necessarily has to be represented
> as a directory (even though current code does it) ?
I do not think the patch has that much deep meaning.

Personally I think the patch is similar to renaming "cache" used in the code to "index" --- needless code shuffling that does not buy you anything.

As an internal symbol, S_IFDIRLNK makes _much_ more sense than S_IFGITLINK, exactly because it is a mixture of S_IFDIR and S_IFLNK.

The only excuse that we _might_ want to consider the patch is that S_IFDIRLNK has not lived that long, compared to the use of word "cache" in our codebase. It's only two weeks old -- so if we were to apply this patch, we would need to do that right away, or it will be never.

But I am not _so_ enthused about the renaming in the code.
Previous: Torgil SvenssonNext: Martin Waitz
Message 3 of 7 in “rename dirlink to gitlink.”
  1. rename dirlink to gitlink.Martin Waitz, May 21, 2007
  2. Torgil SvenssonMay 21, 2007
  3. Junio C HamanoMay 21, 2007
  4. Martin WaitzMay 22, 2007
  5. Junio C HamanoMay 22, 2007
  6. rename gitlink to dirlink.Martin Waitz, May 22, 2007
  7. Petr BaudisMay 22, 2007

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.