<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-submodule.txt, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-02-07T08:44:49Z</updated>
<entry>
<title>submodule: add --no-fetch parameter to update command</title>
<updated>2009-02-07T08:44:49Z</updated>
<author>
<name>Fabian Franz</name>
<email>git@fabian-franz.de</email>
</author>
<published>2009-02-05T22:18:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31ca3ac30fe3c2583881a74ef346911c8fba478f'/>
<id>urn:sha1:31ca3ac30fe3c2583881a74ef346911c8fba478f</id>
<content type='text'>
git submodule update --no-fetch makes it possible to use git submodule
update in complete offline mode by not fetching new revisions.

This does make sense in the following setup:

* There is an unstable and a stable branch in the super/master repository.
* The submodules might be at different revisions in the branches.
* You are at some place without internet connection ;)

With this patch it is now possible to change branches and update
the submodules to be at the recorded revision without online access.

Another advantage is that with -N the update operation is faster, because fetch is checking for new updates even if there was no fetch/pull on the super/master repository since the last update.

Signed-off-by: Fabian Franz &lt;git@fabian-franz.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint' to sync with GIT 1.6.0.6</title>
<updated>2008-12-20T03:35:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-12-20T03:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=efe05b019ca19328d27c07ef32b4698a7f36166f'/>
<id>urn:sha1:efe05b019ca19328d27c07ef32b4698a7f36166f</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: fix typos, grammar, asciidoc syntax</title>
<updated>2008-12-20T03:10:46Z</updated>
<author>
<name>Markus Heidelberg</name>
<email>markus.heidelberg@web.de</email>
</author>
<published>2008-12-19T12:14:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04c8ce9c1c803a8dc0f3728f57550f9bc9e605c2'/>
<id>urn:sha1:04c8ce9c1c803a8dc0f3728f57550f9bc9e605c2</id>
<content type='text'>
Signed-off-by: Markus Heidelberg &lt;markus.heidelberg@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-submodule: add "sync" command</title>
<updated>2008-08-26T05:48:01Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2008-08-24T19:43:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2327f61ecc4e9fbb6dd9fffdec0b043aeaca908f'/>
<id>urn:sha1:2327f61ecc4e9fbb6dd9fffdec0b043aeaca908f</id>
<content type='text'>
When a submodule's URL changes upstream, existing submodules
will be out of sync since their remote."$origin".url will still
be set to the old value.

This adds a "git submodule sync" command that reads submodules'
URLs from .gitmodules and updates them accordingly.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-submodule - Add 'foreach' subcommand</title>
<updated>2008-08-17T23:29:22Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mlevedahl@gmail.com</email>
</author>
<published>2008-08-10T23:10:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=19a31f9c1a6b18abd8a7f20d616516afca36a6a3'/>
<id>urn:sha1:19a31f9c1a6b18abd8a7f20d616516afca36a6a3</id>
<content type='text'>
submodule foreach &lt;command-list&gt; will execute the list of commands in
each currently checked out submodule directory. The list of commands
is arbitrary as long as it is acceptable to sh. The variables '$path'
and '$sha1' are availble to the command-list, defining the submodule
path relative to the superproject and the submodules's commitID as
recorded in the superproject (this may be different than HEAD in the
submodule).

This utility is inspired by a number of threads on the mailing list
looking for ways to better integrate submodules in a tree and work
with them as a unit. This could include fetching a new branch in each
from a given source, or possibly checking out a given named branch in
each. Currently, there is no consensus as to what additional commands
should be implemented in the porcelain, requiring all users whose needs
exceed that of git-submodule to do their own scripting. The foreach
command is intended to support such scripting, and in particular does
no error checking and produces no output, thus allowing end users
complete control over any information printed out and over what
constitutes an error. The processing does terminate if the command-list
returns an error, but processing can easily be forced for all
submodules be terminating the list with ';true'.

Signed-off-by: Mark Levedahl &lt;mlevedahl@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make the DESCRIPTION match &lt;x&gt;... items in the SYNOPSIS</title>
<updated>2008-07-31T04:42:55Z</updated>
<author>
<name>Abhijit Menon-Sen</name>
<email>ams@toroid.org</email>
</author>
<published>2008-07-30T09:33:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f448e24e2fe336621306b04b84e947bdd04f7ecc'/>
<id>urn:sha1:f448e24e2fe336621306b04b84e947bdd04f7ecc</id>
<content type='text'>
When the SYNOPSIS says e.g. "&lt;path&gt;...", it is nice if the DESCRIPTION
also mentions "&lt;path&gt;..." and says the specified "paths" (note plural)
are used for $whatever. This fixes the obvious mismatches.

Signed-off-by: Abhijit Menon-Sen &lt;ams@toroid.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-submodule.txt: fix doubled word</title>
<updated>2008-07-27T21:14:01Z</updated>
<author>
<name>Cesar Eduardo Barros</name>
<email>cesarb@cesarb.net</email>
</author>
<published>2008-07-26T04:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=77ef80a83e652d65a26213bc276b33051524998f'/>
<id>urn:sha1:77ef80a83e652d65a26213bc276b33051524998f</id>
<content type='text'>
Signed-off-by: Cesar Eduardo Barros &lt;cesarb@cesarb.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-submodule.txt: Further clarify the description</title>
<updated>2008-07-19T18:17:43Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2008-07-18T13:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c47f10246ac6413ac6902bd70e45492174fac873'/>
<id>urn:sha1:c47f10246ac6413ac6902bd70e45492174fac873</id>
<content type='text'>
This patch rewrites the general description yet again, first clarifying
the high-level concept, mentioning the difference to remotes and using
the subtree merge strategy, then getting to the details about tree
entries and .gitmodules file.

The patch also makes few smallar grammar fixups within the rest of the
description and clarifies how does 'init' relate to 'update --init'.

Cc: Heikki Orsila &lt;shdl@zakalwe.fi&gt;
Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-submodule.txt: Add Description section</title>
<updated>2008-07-17T00:24:32Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2008-07-16T18:44:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e38953ab00bfb150822d2d92d2dc8e4ce31ef9a4'/>
<id>urn:sha1:e38953ab00bfb150822d2d92d2dc8e4ce31ef9a4</id>
<content type='text'>
Figuring out how submodules work conceptually is quite a bumpy
ride for a newcomer; the user manual helps (if one knows to actually
look into it), but the reference documentation should provide good
quick intro as well. This patch attempts to do that, with suggestions
from Heikki Orsila.

Cc: Heikki Orsila &lt;shdl@zakalwe.fi&gt;
Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-submodule - make "submodule add" more strict, and document it</title>
<updated>2008-07-15T06:35:31Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mlevedahl@gmail.com</email>
</author>
<published>2008-07-10T01:05:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec05df353c594f2afc6509831d3ce145856b0b89'/>
<id>urn:sha1:ec05df353c594f2afc6509831d3ce145856b0b89</id>
<content type='text'>
This change makes "submodule add" much more strict in the arguments it
takes, and is intended to address confusion as recently noted on the
git-list. With this change, the required syntax is:

	$ git submodule add URL path

Specifically, this eliminates the form

	$ git submodule add URL

which was confused by more than one person as

	$ git submodule add path

With this patch, the URL locating the submodule's origin repository can be
either an absolute URL, or (if it begins with ./ or ../) can express the
submodule's repository location relative to the superproject's origin.

This patch also eliminates a third form of URL, which was relative to the
superproject's top-level directory (not its repository).  Any URL that was
neither absolute nor matched ./*|../* was assumed to point to a
subdirectory of the superproject as the location of the submodule's origin
repository.  This URL form was confusing and does not seem to correspond
to an important use-case.  Specifically, no-one has identified the need to
clone from a repository already in the superproject's tree, but if this is
needed it is easily done using an absolute URL: $(pwd)/relative-path.  So,
no functionality is lost with this patch. (t6008-rev-list-submodule.sh did
rely upon this relative URL, fixed by using $(pwd).)

Following this change, there are exactly four variants of
submodule-add, as both arguments have two flavors:

URL can be absolute, or can begin with ./|../ and thus names the
submodule's origin relative to the superproject's origin.

Note: With this patch, "submodule add" discerns an absolute URL as
matching /*|*:*: e.g., URL begins with /, or it contains a :.  This works
for all valid URLs, an absolute path in POSIX, as well as an absolute path
on Windows).

path can either already exist as a valid git repo, or will be cloned from
the given URL.  The first form here eases creation of a new submodule in
an existing superproject as the submodule can be added and tested in-tree
before pushing to the public repository.  However, the more usual form is
the second, where the repo is cloned from the given URL.

This specifically addresses the issue of

	$ git submodule add a/b/c

attempting to clone from a repository at "a/b/c" to create a new module
in "c". This also simplifies description of "relative URL" as there is now
exactly *one* form: a URL relative to the parent's origin repo.

Signed-off-by: Mark Levedahl &lt;mlevedahl@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
