<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-submodule.txt, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-07-12T22:18:21Z</updated>
<entry>
<title>Merge branch 'sb/submodule-doc'</title>
<updated>2017-07-12T22:18:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-12T22:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5fe65fe93db1931501027a322ecb6a9f17f56e7'/>
<id>urn:sha1:b5fe65fe93db1931501027a322ecb6a9f17f56e7</id>
<content type='text'>
Doc update.

* sb/submodule-doc:
  submodules: overhaul documentation
</content>
</entry>
<entry>
<title>Merge branch 'vs/typofixes'</title>
<updated>2017-06-30T20:45:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-30T20:45:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=748cffc22bbe769b3b2fba90ae98db4719b90bb4'/>
<id>urn:sha1:748cffc22bbe769b3b2fba90ae98db4719b90bb4</id>
<content type='text'>
Many typofixes.

* vs/typofixes:
  Spelling fixes
</content>
</entry>
<entry>
<title>Spelling fixes</title>
<updated>2017-06-27T17:35:49Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-06-25T10:20:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=64127575149e35b409bc2f78962f86507346d604'/>
<id>urn:sha1:64127575149e35b409bc2f78962f86507346d604</id>
<content type='text'>
Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodules: overhaul documentation</title>
<updated>2017-06-22T22:25:25Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-06-22T21:01:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d48034551a3b1cb2dc60ff1c30a2d5acad20b6a1'/>
<id>urn:sha1:d48034551a3b1cb2dc60ff1c30a2d5acad20b6a1</id>
<content type='text'>
This patch aims to detangle (a) the usage of `git-submodule`
from (b) the concept of submodules and (c) how the actual
implementation looks like, such as where they are configured
and (d) what the best practices are.

To do so, move the conceptual parts of the 'git-submodule'
man page to a new man page gitsubmodules(7). This new page
is just like gitmodules(5), gitattributes(5), gitcredentials(7),
gitnamespaces(7), gittutorial(7), which introduce a concept
rather than explaining a specific command.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-submodule: cleanup "add" section</title>
<updated>2017-06-22T19:38:52Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaarticsivaraam91196@gmail.com</email>
</author>
<published>2017-06-22T02:51:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=beebc6df4c0db886a5bf8c3eb5bf92726e944851'/>
<id>urn:sha1:beebc6df4c0db886a5bf8c3eb5bf92726e944851</id>
<content type='text'>
The "add" section for 'git-submodule' is redundant in its
description and the short synopsis line. Fix it.

Remove the redundant mentioning of the 'repository' argument
being mandatory.

The text is hard to read because of back-references, so remove
those.

Replace the word "humanish" by "canonical" as that conveys better
what we do to guess the path.

While at it, quote all occurrences of '.gitmodules' as that is an
important file in the submodule context, also link to it on its
first mention.

Helped-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Kaartic Sivaraam &lt;kaarticsivaraam91196@gmail.com&gt;
Reviewed-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule init: initialize active submodules</title>
<updated>2017-03-18T16:51:23Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-03-17T22:38:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e7eaed016e6241e96de6a0140923e81cfc387e8'/>
<id>urn:sha1:3e7eaed016e6241e96de6a0140923e81cfc387e8</id>
<content type='text'>
Teach `submodule init` to initialize submodules which have been
configured to be active by setting 'submodule.active' with a pathspec.

Now if no path arguments are given and 'submodule.active' is configured,
`init` will initialize all submodules which have been configured to be
active.  If no path arguments are given and 'submodule.active' is not
configured, then `init` will retain the old behavior of initializing all
submodules.

This allows users to record more complex patterns as it saves retyping
them whenever you invoke update.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule init: warn about falling back to a local path</title>
<updated>2017-02-28T21:46:22Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-02-25T01:31:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d1b3b81aabf91ce654b043b00aa72721a777c84c'/>
<id>urn:sha1:d1b3b81aabf91ce654b043b00aa72721a777c84c</id>
<content type='text'>
When a submodule is initialized, the config variable 'submodule.&lt;name&gt;.url'
is set depending on the value of the same variable in the .gitmodules
file. When the URL indicates to be relative, then the url is computed
relative to its default remote. The default remote cannot be determined
accurately in all cases, such that it falls back to 'origin'.

The 'origin' remote may not exist, though. In that case we give up looking
for a suitable remote and we'll just assume it to be a local relative path.

This can be confusing to users as there is a lot of guessing involved,
which is not obvious to the user.

So in the corner case of assuming a local autoritative truth, warn the
user to lessen the confusion.

This behavior was introduced in 4d6893200 (submodule add: allow relative
repository path even when no url is set, 2011-06-06), which shared the
code with submodule-init and then ported to C in 3604242f080a (submodule:
port init from shell to C, 2016-04-15).

In case of submodule-add, this behavior makes sense in some use cases[1],
however for submodule-init there does not seem to be an immediate obvious
use case to fall back to a local submodule. However there might be, so
warn instead of die here.

While adding the warning, also clarify the behavior of relative URLs in
the documentation.

[1] e.g. http://stackoverflow.com/questions/8721984/git-ignore-files-for-public-repository-but-not-for-private
"store a secret locally in a submodule, with no intention to publish it"

Reported-by: Shawn Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/doc-submodule-markup-fix'</title>
<updated>2017-02-15T22:56:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-15T22:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e23116d1f77f73714c67fe546d879f4bbb633a0'/>
<id>urn:sha1:3e23116d1f77f73714c67fe546d879f4bbb633a0</id>
<content type='text'>
Doc markup fix.

* jk/doc-submodule-markup-fix:
  docs/git-submodule: fix unbalanced quote
</content>
</entry>
<entry>
<title>docs/git-submodule: fix unbalanced quote</title>
<updated>2017-02-13T22:05:40Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-02-13T21:05:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e91461b3323ad75e02d2f4fa65b8482744f26036'/>
<id>urn:sha1:e91461b3323ad75e02d2f4fa65b8482744f26036</id>
<content type='text'>
The documentation gives an example of the submodule foreach
command that uses both backticks and single-quotes. We stick
the whole thing inside "+" markers to make it monospace, but
the inside punctuation still needs escaping. We handle the
backticks with "{backtick}", and use backslash-escaping for
the single-quotes.

But we missed the escaping on the second quote. Fortunately,
asciidoc renders this unbalanced quote as we want (showing
the quote), but asciidoctor does not. We could fix it by
adding the missing backslash.

However, let's take a step back. Even when rendered
correctly, it's hard to read a long command stuck into the
middle of a paragraph, and the important punctuation is hard
to notice. Let's instead bump it into its own single-line
code block. That makes both the source and the rendered
result more readable, and as a bonus we don't have to worry
about quoting at all.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule update documentation: don't repeat ourselves</title>
<updated>2017-01-12T22:19:32Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2016-12-27T23:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc01a5d26a8f0f80db8302d3ef3ce10924a68581'/>
<id>urn:sha1:fc01a5d26a8f0f80db8302d3ef3ce10924a68581</id>
<content type='text'>
The documentation for the `git submodule update` command, repeats itself
for each update option, "This is done when &lt;option&gt; is given, or no
option is given and `submodule.&lt;name&gt;.update` is set to &lt;string&gt;.

Avoid these repetitive clauses by stating the command line options take
precedence over configured options.

Also add 'none' to the list of options instead of mentioning it in the
following running text and split the list into two parts, one that is
accessible via the command line and one that is only reachable via the
configuration variables.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
