<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/submodule.h, branch v1.7.9.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.9.7</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.9.7'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2011-10-13T17:18:16Z</updated>
<entry>
<title>submodule: Search for merges only at end of recursive merge</title>
<updated>2011-10-13T17:18:16Z</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2011-10-13T12:59:05Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=80988783c8c417c5e914256b43ed3604cc8fa4c3'/>
<id>urn:sha1:80988783c8c417c5e914256b43ed3604cc8fa4c3</id>
<content type='text'>
The submodule merge search is not useful during virtual merges because
the results cannot be used automatically.  Furthermore any suggestions
made by the search may apply to commits different than HEAD:sub and
MERGE_HEAD:sub, thus confusing the user.  Skip searching for submodule
merges during a virtual merge such as that between B and C while merging
the heads of:

    B---BC
   / \ /
  A   X
   \ / \
    C---CB

Run the search only when the recursion level is zero (!o-&gt;call_depth).
This fixes known breakage tested in t7405-submodule-merge.

Signed-off-by: Brad King &lt;brad.king@kitware.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: Don't push a repository with unpushed submodules</title>
<updated>2011-08-21T06:03:52Z</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>iveqy@iveqy.com</email>
</author>
<published>2011-08-19T22:08:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d2b17b3220cbd75b1c8e2aa6cfdc5c121749c97d'/>
<id>urn:sha1:d2b17b3220cbd75b1c8e2aa6cfdc5c121749c97d</id>
<content type='text'>
When working with submodules it is easy to forget to push a
submodule to the server but pushing a super-project that
contains a commit for that submodule. The result is that the
superproject points at a submodule commit that is not available
on the server.

This adds the option --recurse-submodules=check to push. When
using this option git will check that all submodule commits that
are about to be pushed are present on a remote of the submodule.

To be able to use a combined diff, disabling a diff callback has
been removed from combined-diff.c.

Signed-off-by: Fredrik Gustafsson &lt;iveqy@iveqy.com&gt;
Mentored-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Mentored-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch/pull: Add the 'on-demand' value to the --recurse-submodules option</title>
<updated>2011-03-09T21:10:35Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2011-03-06T22:11:21Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8f0700dd33f63e594b9b34c84efe94e670ea4f45'/>
<id>urn:sha1:8f0700dd33f63e594b9b34c84efe94e670ea4f45</id>
<content type='text'>
Until now the --recurse-submodules option could only be used to either
fetch all populated submodules recursively or to disable recursion
completely. As fetch and pull now by default just fetch those submodules
for which new commits have been fetched in the superproject, a command
line option to enforce that behavior is needed to be able to override
configuration settings.

Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch/pull: recurse into submodules when necessary</title>
<updated>2011-03-09T21:10:35Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2011-03-06T22:10:46Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=88a21979c5717e3f37b9691e90b6dbf2b94c751a'/>
<id>urn:sha1:88a21979c5717e3f37b9691e90b6dbf2b94c751a</id>
<content type='text'>
To be able to access all commits of populated submodules referenced by the
superproject it is sufficient to only then let "git fetch" recurse into a
submodule when the new commits fetched in the superproject record new
commits for it. Having these commits present is extremely useful when
using the "--submodule" option to "git diff" (which is what "git gui" and
"gitk" do since 1.6.6), as all submodule commits needed for creating a
descriptive output can be accessed. Also merging submodule commits (added
in 1.7.3) depends on the submodule commits in question being present to
work. Last but not least this enables disconnected operation when using
submodules, as all commits necessary for a successful "git submodule
update -N" will have been fetched automatically. So we choose this mode as
the default for fetch and pull.

Before a new or changed ref from upstream is updated in update_local_ref()
"git rev-list &lt;new-sha1&gt; --not --branches --remotes" is used to determine
all newly fetched commits. These are then walked and diffed against their
parent(s) to see if a submodule has been changed. If that is the case, its
path is stored to be fetched after the superproject fetch is completed.

Using the "--recurse-submodules" or the "--no-recurse-submodules" option
disables the examination of the fetched refs because the result will be
ignored anyway.

There is currently no infrastructure for storing deleted and new
submodules in the .git directory of the superproject. That's why fetch and
pull for now only fetch submodules that are already checked out and are
not renamed.

In t7403 the "--no-recurse-submodules" argument had to be added to "git
pull" to avoid failure because of the moved upstream submodule repo.

Thanks-to: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Thanks-to: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add the 'fetch.recurseSubmodules' config setting</title>
<updated>2010-11-12T23:06:03Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2010-11-10T23:55:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=be254a0ea99b441a6c514cb8b25cd72357383700'/>
<id>urn:sha1:be254a0ea99b441a6c514cb8b25cd72357383700</id>
<content type='text'>
This new boolean option can be used to override the default for "git
fetch" and "git pull", which is to not recurse into populated submodules
and fetch all new commits there too.

Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch/pull: Add the --recurse-submodules option</title>
<updated>2010-11-12T23:06:03Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2010-11-12T12:54:52Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7dce19d374a37932e9d4c3a6202af407cf5114eb'/>
<id>urn:sha1:7dce19d374a37932e9d4c3a6202af407cf5114eb</id>
<content type='text'>
Until now you had to call "git submodule update" (without -N|--no-fetch
option) or something like "git submodule foreach git fetch" to fetch
new commits in populated submodules from their remote.

This could lead to "(commits not present)" messages in the output of
"git diff --submodule" (which is used by "git gui" and "gitk") after
fetching or pulling new commits in the superproject and is an obstacle for
implementing recursive checkout of submodules. Also "git submodule
update" cannot fetch changes when disconnected, so it was very easy to
forget to fetch the submodule changes before disconnecting only to
discover later that they are needed.

This patch adds the "--recurse-submodules" option to recursively fetch
each populated submodule from the url configured in the .git/config of the
submodule at the end of each "git fetch" or during "git pull" in the
superproject. The submodule paths are taken from the index.

The hidden option "--submodule-prefix" is added to "git fetch" to be able
to print out the full paths of nested submodules.

Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hv/submodule-find-ff-merge'</title>
<updated>2010-08-22T06:27:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-08-22T06:27:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2d984464c6be7ced6772a8dcf95d6a461a659a78'/>
<id>urn:sha1:2d984464c6be7ced6772a8dcf95d6a461a659a78</id>
<content type='text'>
* hv/submodule-find-ff-merge:
  Implement automatic fast-forward merge for submodules
  setup_revisions(): Allow walking history in a submodule
  Teach ref iteration module about submodules

Conflicts:
	submodule.c
</content>
</entry>
<entry>
<title>Submodules: Use "ignore" settings from .gitmodules too for diff and status</title>
<updated>2010-08-09T16:11:44Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2010-08-05T22:40:48Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=302ad7a9930a34413418b6436f96826070367647'/>
<id>urn:sha1:302ad7a9930a34413418b6436f96826070367647</id>
<content type='text'>
The .gitmodules file is parsed for "submodule.&lt;name&gt;.ignore" entries
before looking for them in .git/config. Thus settings found in .git/config
will override those from .gitmodules, thereby allowing the local developer
to ignore settings given by the remote side while also letting upstream
set defaults for those users who don't have special needs.

Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Submodules: Add the new "ignore" config option for diff and status</title>
<updated>2010-08-09T16:01:52Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2010-08-05T22:39:25Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=aee9c7d6540fe6f66fbbe7be420caa26ae0fa2d9'/>
<id>urn:sha1:aee9c7d6540fe6f66fbbe7be420caa26ae0fa2d9</id>
<content type='text'>
The new "ignore" config option controls the default behavior for "git
status" and the diff family. It specifies under what circumstances they
consider submodules as modified and can be set separately for each
submodule.

The command line option "--ignore-submodules=" has been extended to accept
the new parameter "none" for both status and diff.

Users that chose submodules to get rid of long work tree scanning times
might want to set the "dirty" option for those submodules. This brings
back the pre 1.7.0 behavior, where submodule work trees were never
scanned for modifications. By using "--ignore-submodules=none" on the
command line the status and diff commands can be told to do a full scan.

This option can be set to the following values (which have the same name
and meaning as for the "--ignore-submodules" option of status and diff):

"all": All changes to the submodule will be ignored.

"dirty": Only differences of the commit recorded in the superproject and
	the submodules HEAD will be considered modifications, all changes
	to the work tree of the submodule will be ignored. When using this
	value, the submodule will not be scanned for work tree changes at
	all, leading to a performance benefit on large submodules.

"untracked": Only untracked files in the submodules work tree are ignored,
	a changed HEAD and/or modified files in the submodule will mark it
	as modified.

"none" (which is the default): Either untracked or modified files in a
	submodules work tree or a difference between the subdmodules HEAD
	and the commit recorded in the superproject will make it show up
	as changed. This value is added as a new parameter for the
	"--ignore-submodules" option of the diff family and "git status"
	so the user can override the settings in the configuration.

Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Implement automatic fast-forward merge for submodules</title>
<updated>2010-07-07T16:48:45Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2010-07-07T13:39:13Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=68d03e4a6e448aa557f52adef92595ac4d6cd4bd'/>
<id>urn:sha1:68d03e4a6e448aa557f52adef92595ac4d6cd4bd</id>
<content type='text'>
This implements a simple merge strategy for submodule hashes. We check
whether one side of the merge candidates is already contained in the
other and then merge automatically.

If both sides contain changes we search for a merge in the submodule.
In case a single one exists we check that out and suggest it as the
merge resolution. A list of candidates is returned when we find multiple
merges that contain both sides of the changes.

This is useful for a workflow in which the developers can publish topic
branches in submodules and a separate maintainer merges them. In case
the developers always wait until their branch gets merged before tracking
them in the superproject all merges of branches that contain submodule
changes will be resolved automatically. If developers choose to track
their feature branch the maintainer might get a conflict but git will
search the submodule for a merge and suggest it/them as a resolution.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
