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

[GSoC][PATCH v2] repo: use repository parameter in get_layout_bare()

From
NNoman <necrospre@gmail.com>
Date
Mar 29, 2026, 05:45 UTC
Message-ID
<CA+TqWtVvEyJA0QzsGh1igiRdwufopfpvA-+=_nCOWFHNk25uEw@mail.gmail.com>
Hello Siddharth and the Git community,

Thank you for the feedback on my previous documentation patch. I understand now that 'fileX' and 'fileY' were intended as specific identifiers in the examples rather than typographical errors. I have withdrawn that patch.

As a more technical micro-project, I have refactored get_layout_bare() and get_layout_shallow() in builtin/repo.c to explicitly use the passed repo pointer instead of relying on global macros like is_bare_repository().

This change supports the long-term goal of reducing Git's dependency on the the_repository global variable and making the git repo command compatible with multi-repository environments.

My patch is available for review here:

I have also uploaded my full project proposal, "Enhancing the git repo Command for Machine-Readable Metadata," to the GSoC portal.

Best regards, Naorem Ngathoiba Singh
Message 1 of 1 in “repo: use repository parameter in get_layout_bare()”
  1. NomanMar 29, 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.