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

Re: [PATCH RFC v3 2/2] Move libgit.a sources into separate "lib/" directory

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2026, 22:43 UTC
Message-ID
<xmqqqzkx9t95.fsf@gitster.g>
In-Reply-To
<al6Yz_QMlyU1GETv@fruit.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> I would very much welcome better rename support and I'm sure the
> community would as well.  If we can incentivize ourselves to step up and
> implement that, I'm all for it.

I would welcome such an effort. It is, however, a different story to move things simply because we want to move them, without a concrete need or strategy to do so.

In any case, the root level of the 'lib/' directory introduced by the 'ps/libgit-in-subdir' topic is full of source files, with only a small number of focused subdirectories like 'odb/', 'refs/', and 'ewah/' mixed in to house specific subsystems. This merely shifts the clutter one level down without resolving it.

I would rather see a structure where each subsystem-like group carves out its own directory.

I do not particularly care whether such a directory lives at the root level or inside 'lib/'. But if we were to establish a sensible grouping, I suspect we would not need a 'lib/' directory solely to house the 'refs/' and 'odb/' subdirectories. Instead, it would be sufficiently clean to have 'refs/', 'odb/', and other subsystem directories directly under the root level.

I do not think we want to do this in a single large change. If we were to move everything to 'lib/' only to then need to further group them into subdirectories of 'lib/', it would subject us to multiple rounds of disruption. I suspect it would be far less disruptive if we migrated one subsystem at a time, directly to a new directory immediately below the root level.

Previous: brian m. carlsonNext: Taylor Blau
Message 16 of 18 in “Move libgit.a sources into separate "lib/" directory”
  1. 0/2 Move libgit.a sources into separate "lib/" directoryPatrick Steinhardt, Jul 1, 2026
  2. 1/2 t/helper: prepare "test-example-tap.c" for introduction of "lib/"Patrick Steinhardt, Jul 1, 2026
  3. 2/2 Move libgit.a sources into separate "lib/" directoryPatrick Steinhardt, Jul 1, 2026
  4. SZEDER GáborJul 13, 2026
  5. Johannes SchindelinJul 20, 2026
  6. Junio C HamanoJul 20, 2026
  7. Patrick SteinhardtAug 11, 2026
  8. Junio C HamanoAug 11, 2026
  9. Patrick SteinhardtAug 11, 2026
  10. Johannes SchindelinAug 13, 2026
  11. Junio C HamanoAug 13, 2026
  12. Michael MontalboAug 13, 2026
  13. Michael MontalboAug 14, 2026
  14. Junio C HamanoAug 17, 2026
  15. brian m. carlsonJul 20, 2026
  16. Junio C HamanoJul 20, 2026
  17. Taylor BlauJul 20, 2026
  18. Patrick SteinhardtAug 11, 2026

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.