About the .gitmodules file

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

About the .gitmodules file

From: Imran M Yousuf <hidden>
Date: 2016-06-15 22:44:02

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

Re: About the .gitmodules file

From: Miklos Vajna <hidden>
Date: 2016-06-15 22:44:02

On Wed, Jan 02, 2008 at 04:39:24PM +0600, Imran M Yousuf [off-list ref] wrote:
"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
that means:  the submodule is under /root_of_the_repo/a/ and the repo
should be cloned from $url (to a/) when one clones the parent repo and
runs git submodule init

- VMiklos
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help