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

About the .gitmodules file

From
Imran M Yousuf <imyousuf@gmail.com>
Date
Jan 2, 2008, 10:39 UTC
Message-ID
<7bfdc29a0801020239w6f4133d3pc6f1aa325b1067db@mail.gmail.com>
Hi All,

I need a help in order to parse the .gitmodules file generated on "git-submodule add". An entry for a submodule in that file looks like:

    [submodule "a"]
            path = a
            url = /home/imyousuf/projects/git-projs/smart-sip/submodules/a/.git

I want to parse this file to know the location of my module so that when I got git-commit on the parent project my script will also traverse the submodule hierarchy. I wanted to know whether path = a noted the relative path from the current directory or not.

Thanks in advance,
-- 
Imran M Yousuf
Next: Miklos Vajna
Message 1 of 2 in “About the .gitmodules file”
  1. Imran M YousufJan 2, 2008
  2. Miklos VajnaJan 2, 2008

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.