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

Re: [PATCH] Don't create the $GIT_DIR/branches directory on init

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 31, 2009, 18:24 UTC
Message-ID
<20091031182416.GO10505@spearce.org>
In-Reply-To
<7vr5sj8m5f.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
> Modern git Porcelains write remote definitions solely to .git/config, but
> still reads from .git/{branches,remotes}.
...
> Andrew Morton explicitly asked for this to be kept a few years
> ago and I do not see a reason to deprecate this.
...
>     Shawn and other wants to stop JGit from creating this directory on

I probably said something like this. I won't bother denying it, because list archives are more accurate than my own fallible memory.

But I didn't know the Andrew Morton part above. After hearing it from you, I'm reversing my (apparent) direction here. We should continue to create the branches directory within a new repository.

Sorry Robin, but Andrew Morton matters. Its one stupid unused directory in a repository that will chew through thousands of inodes as loose objects. Its a drop in the bucket in terms of resource cost used by Git. And Andrew is someone whose workflow we don't want to break if we can avoid it. He's a long time Git user who is also high up in the kernel food chain. Interrupting him disrupts a fair chunk of kernel work while he grumbles about the Goddamn Idiotic Truckload of s**t that Linus begat.

> This patch alone breaks tests in the t55?? series quite a lot,
Drop the patch.
-- 
Shawn.
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “Don't create the $GIT_DIR/branches directory on init”
  1. Don't create the $GIT_DIR/branches directory on initRobin Rosenberg, Oct 30, 2009
  2. Junio C HamanoOct 30, 2009
  3. Thomas RastOct 31, 2009
  4. Robin RosenbergOct 31, 2009
  5. Shawn O. PearceOct 31, 2009
  6. Junio C HamanoOct 31, 2009
  7. Shawn O. PearceOct 31, 2009
  8. Junio C HamanoOct 31, 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.