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

Re: [PATCH] gitrepository-layout: No longer first two letters. Also add "down".

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 26, 2008, 20:07 UTC
Message-ID
<7veizuog2z.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<E1LGFoE-0001EZ-0F@jidanni.org>
jidanni@jidanni.org writes:
> Signed-off-by: jidanni <jidanni@jidanni.org>
First off, when I tried to respond to your message, I got this:
    Cc: undisclosed-recipients:;
which I had to edit it to point at the list.

I think you did "Bcc: git@vger.kernel.org" without any explicit recipient; please don't. It wastes everybody's time.

Second, please realize that the Subject: line is one of the most important piece of information in your patch submission. It is used as the summary of what this change is about in the shortlog output. 2 months from now, do you think anybody (other than you) can guess what the "first two letters" is about among 400 other changes?

I would have preferred the Subject: and the commit log message like this for this patch:

    Subject: [PATCH] Fix description of objects/??/ directories in the repository-layout doc
    These fan-out directories are no longer first two letters.  Also fix
    a sentence that meant to say "keep something down" but forgot "down".

That is, summarize what this patch is about on Subject: line, and explain why the change is a good idea (in other words, why the current one is bad) in the commit log message.

I agree with the "down" fix; thanks for catching this grammatical and semantic error.

I however do not understand the reason behind the former "two letters" change.

When creating a new object, the filename to hold it when its object name is e.g. 92b35d66d0e335771c2e4a4a79f95adb844b1f91 (that's a tag object for v1.6.1 if anybody cares) is computed by taking its first two letters "92" and using that to choose ".git/object/92" as the containing "fan-out" directory. The file in that directory is named using the remainder of the object name.

The entry in the repository layout document explains what the directories with two-letter names you find in objects/ directory are, and I do not see a reason why you want to say "no longer first two letters". Their names still are, and very likely continue to be, two-letter long.

Maybe I misunderstood what you wanted to say by "no longer...". Did you mean (unlike the sample commit log message I suggested above):

    Subject: [PATCH] Fix description of objects/??/ directories in the repository-layout doc
    Do not say first two letters anymore.  Also fix a sentence that meant
    to say "keep something down" but forgot "down".

If that is the case, please justify why you think it is better not to say "first two letters" the documentation.

Thanks.
Previous: jidanni@jidanni.orgNext: jidanni@jidanni.org
Message 2 of 19 in “gitrepository-layout: No longer first two letters. Also add "down".”
  1. gitrepository-layout: No longer first two letters. Also add "down".jidanni@jidanni.org, Dec 26, 2008
  2. Junio C HamanoDec 26, 2008
  3. jidanni@jidanni.orgDec 26, 2008
  4. Junio C HamanoDec 26, 2008
  5. jidanni@jidanni.orgDec 26, 2008
  6. Nanako ShiraishiDec 26, 2008
  7. commit.templatejidanni@jidanni.org, Dec 26, 2008
  8. Junio C HamanoDec 26, 2008
  9. Boyd Stephen Smith Jr.Dec 26, 2008
  10. jidanni@jidanni.orgDec 27, 2008
  11. Boyd Stephen Smith Jr.Dec 27, 2008
  12. jidanni@jidanni.orgDec 27, 2008
  13. Boyd Stephen Smith Jr.Dec 27, 2008
  14. jidanni@jidanni.orgDec 27, 2008
  15. Nanako ShiraishiDec 27, 2008
  16. Junio C HamanoDec 27, 2008
  17. Junio C HamanoDec 27, 2008
  18. Sverre RabbelierDec 28, 2008
  19. Nanako ShiraishiDec 29, 2008

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.