git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About the .gitmodules file
@ 2008-01-02 10:39 Imran M Yousuf
  2008-01-02 17:13 ` Miklos Vajna
  0 siblings, 1 reply; 2+ messages in thread
From: Imran M Yousuf @ 2008-01-02 10:39 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: About the .gitmodules file
  2008-01-02 10:39 About the .gitmodules file Imran M Yousuf
@ 2008-01-02 17:13 ` Miklos Vajna
  0 siblings, 0 replies; 2+ messages in thread
From: Miklos Vajna @ 2008-01-02 17:13 UTC (permalink / raw)
  To: Imran M Yousuf; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

On Wed, Jan 02, 2008 at 04:39:24PM +0600, Imran M Yousuf <imyousuf@gmail.com> 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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-02 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 10:39 About the .gitmodules file Imran M Yousuf
2008-01-02 17:13 ` Miklos Vajna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).