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

Re: Gitweb and submodules

From
LHLars Hjemli <hjemli@gmail.com>
Date
Jul 27, 2007, 14:31 UTC
Message-ID
<8c5c35580707270731l1fa5bd1dw94c9955d314b4ce6@mail.gmail.com>
In-Reply-To
<200707271322.50114.jnareb@gmail.com>
On 7/27/07, Jakub Narebski <jnareb@gmail.com> wrote:
> I'd like to add submodule support to gitweb, among others marking
> submodules as such in the 'tree' view and adding 'log' view link to
> them.
A bit of advertising:
  http://hjemli.net/git/cgit/tree
The implementation can be found here:
  http://hjemli.net/git/cgit/tree/ui-tree.c#81
> But for that I need a question answered: how to find GIT_DIR of
> repository which contains submodule objects?

Generally, you can't. But if you just want to show the log of the submodule path, you probably don't need to do anything at all (except the special handling in 'tree' view). If you do want to show the log of the referenced repository, I guess a new entry in .gitmodules could be helpful.

-- larsh

Previous: Sven Verdoolaege
Message 9 of 9 in “Gitweb and submodules”
  1. Jakub NarebskiJul 27, 2007
  2. Sven VerdoolaegeJul 27, 2007
  3. Jakub NarebskiJul 28, 2007
  4. Sven VerdoolaegeJul 28, 2007
  5. Jakub NarebskiJul 28, 2007
  6. Sven VerdoolaegeJul 29, 2007
  7. Jakub NarebskiJul 30, 2007
  8. Sven VerdoolaegeJul 30, 2007
  9. Lars HjemliJul 27, 2007

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.