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

Re: [RFD] Deepen the git directory structure a bit.

From
Christian MICHON <christian.michon@gmail.com>
Date
Feb 18, 2010, 23:34 UTC
Message-ID
<46d6db661002181534r10a887b5gcc23435cb8952f13@mail.gmail.com>
In-Reply-To
<alpine.LFD.2.00.1002181010590.4141@localhost.localdomain>

On Thu, Feb 18, 2010 at 7:36 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:

Show 9 quoted lines
>
> Ok, this is just a request-for-discussion. I'm trying out a patch like
> this, and I think it's a step in the right direction. The git directory
> structure is _very_ flat, and currently in a fully built git tree, the
> top-level directory has something like 750 files in it.
>
> After this, it still has a ton of files, but it has shrunk to ~575 files
> instead, and at least for my (admittedly somewhat odd) setup, that
> actually matters for auto-completion etc.

maybe rather than just autocompletion, it does help new code to land in the right place ? I think just for this reason at least it's a good move.

I've a wild idea on a new command to add to git and I was pondering between having it as a perl script or a builtin. Now I know where it should go if I choose a builtin, provided you get a wide consensus.

Show 8 quoted lines
> which doesn't seem all that different, but not having that annoying
> break in "Display all 180 possibilities?" is quite a relief.
>
> NOTE! If you do this in a clean tree (no object files etc), or using an
> editor that has auto-completion rules that ignores '*.o' files, you
> won't see that annoying 'Display all 180 possibilities?' message - it
> will just show the choices instead.  I think bash has some cut-off
> around 100 choices or something.
odd. On my msysgit setup and bash 3.1, I get this on a clean tree:

$ ls builtin<tab> Display all 90 possibilities? (y or n)

But hey, this is on Windows, so we should not bother :-)
-- 
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !
Previous: Linus TorvaldsNext: Pavan Kumar Sunkara
Message 6 of 11 in “[RFD] Deepen the git directory structure a bit.”
  1. Linus TorvaldsFeb 18, 2010
  2. Junio C HamanoFeb 18, 2010
  3. Avery PennarunFeb 18, 2010
  4. Linus TorvaldsFeb 18, 2010
  5. Linus TorvaldsFeb 18, 2010
  6. Christian MICHONFeb 18, 2010
  7. Pavan Kumar SunkaraFeb 19, 2010
  8. Linus TorvaldsFeb 22, 2010
  9. Junio C HamanoFeb 22, 2010
  10. Fabian KösselFeb 25, 2010
  11. Junio C HamanoFeb 27, 2010

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.