<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-submodule.sh, branch v1.5.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.5.6.4</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.6.4'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2008-07-08T23:37:25Z</updated>
<entry>
<title>git-submodule - Fix bugs in adding an existing repo as a module</title>
<updated>2008-07-08T23:37:25Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mlevedahl@gmail.com</email>
</author>
<published>2008-07-08T02:36:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e9656473342e050494c8ea8416fdfdcf52fd1c93'/>
<id>urn:sha1:e9656473342e050494c8ea8416fdfdcf52fd1c93</id>
<content type='text'>
git-submodule add would trip if path to the submodule included a space,
or if its .git was a gitdir: link to a GIT_DIR kept elsewhere. Fix both.

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>git-submodule - Fix errors regarding resolve_relative_url</title>
<updated>2008-06-14T18:34:00Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mlevedahl@gmail.com</email>
</author>
<published>2008-06-14T17:09:41Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8e7e6f39b6895b6623dc0f6053818704899f41a6'/>
<id>urn:sha1:8e7e6f39b6895b6623dc0f6053818704899f41a6</id>
<content type='text'>
git-submodule was invoking "die" from within resolve-relative-url, but
this does not actually cause the script to exit. Fix this by returning
the error to the caller and have the caller exit.

While we're at it, clean up the quoting on invocation of
resolve_relative_url as it was wrong.

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>Improve sed portability</title>
<updated>2008-06-13T05:20:18Z</updated>
<author>
<name>Chris Ridd</name>
<email>chris.ridd@isode.com</email>
</author>
<published>2008-06-11T13:09:19Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fe22e5420ee547bac58481ed1a868f4cd39ad128'/>
<id>urn:sha1:fe22e5420ee547bac58481ed1a868f4cd39ad128</id>
<content type='text'>
The behaviour of "sed" on an incomplete line is unspecified by POSIX, and
On Solaris it apparently fails to process input that doesn't end in a LF.

Consequently constructs like

  re=$(printf '%s' foo | sed -e 's/bar/BAR/g' $)

cause re to be set to the empty string. Such a construct is used in
git-submodule.sh.

Because the LF at the end of command output are stripped away by the
command substitution, it is a safe and sane change to add a LF at the end
of the printf format specifier.

Signed-off-by: Chris Ridd &lt;chris.ridd@isode.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule update: add convenience option --init</title>
<updated>2008-05-16T20:03:55Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2008-05-16T10:23:03Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=be4d2c83b68a96285cc05036add4d64d324e52d9'/>
<id>urn:sha1:be4d2c83b68a96285cc05036add4d64d324e52d9</id>
<content type='text'>
When a submodule is not initialized and you do not want to change the
defaults from .gitmodules anyway, you can now say

	$ git submodule update --init &lt;name&gt;

When "update" is called without --init on an uninitialized submodule,
a hint to use --init is printed.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Use '-f' option to point to the .gitmodules file</title>
<updated>2008-05-16T19:38:52Z</updated>
<author>
<name>Imran M Yousuf</name>
<email>imyousuf@smartitengineering.com</email>
</author>
<published>2008-05-15T07:42:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a5099bb4178591d9a16d704c74dba34b92f35861'/>
<id>urn:sha1:a5099bb4178591d9a16d704c74dba34b92f35861</id>
<content type='text'>
'git config' has a '-f' option that takes the file to parse.
Using it rather than the environment variable seems more logical
and simplified.

Signed-off-by: Imran M Yousuf &lt;imyousuf@smartitengineering.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lh/git-file'</title>
<updated>2008-05-06T02:16:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-05-06T02:16:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e2e2defc14a79ea5b4aaae23e33072f29c5965eb'/>
<id>urn:sha1:e2e2defc14a79ea5b4aaae23e33072f29c5965eb</id>
<content type='text'>
* lh/git-file:
  Teach GIT-VERSION-GEN about the .git file
  Teach git-submodule.sh about the .git file
  Teach resolve_gitlink_ref() about the .git file
  Add platform-independent .git "symlink"
</content>
</entry>
<entry>
<title>Merge branch 'py/submodule'</title>
<updated>2008-04-20T04:11:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-04-20T04:11:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3642617ee7359eed5e108fea48981841591142bf'/>
<id>urn:sha1:3642617ee7359eed5e108fea48981841591142bf</id>
<content type='text'>
* py/submodule:
  builtin-status: Add tests for submodule summary
  builtin-status: submodule summary support
  git-submodule summary: --for-status option
</content>
</entry>
<entry>
<title>git-submodule - possibly use branch name to describe a module</title>
<updated>2008-04-15T06:14:08Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mlevedahl@gmail.com</email>
</author>
<published>2008-04-15T02:48:06Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f669ac0be901e19a8948c9b04af63d23ebae8003'/>
<id>urn:sha1:f669ac0be901e19a8948c9b04af63d23ebae8003</id>
<content type='text'>
This changes the search logic for describing a submodule from:
- annotated tag
- any tag
- tag on a subsequent commit
- commit id

to

- annotated tag
- any tag
- tag on a subsequent commit
- local or remote branch
- commit id

The change is describing with respect to a branch before falling
back to the commit id. By itself, git-submodule will maintain submodules
as headless checkouts without ever making a local branch. In
general, such heads can always be described relative to the remote branch
regardless of existence of tags, and so provides a better fallback
summary than just the commit id.

This requires inserting an extra describe step as --contains is
incompatible with --all, but the latter can be used with --always
to fall back to a commit ID. Also, --contains implies --tags, so the
latter is not needed.

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>git-submodule summary: --for-status option</title>
<updated>2008-04-13T03:00:45Z</updated>
<author>
<name>Ping Yin</name>
<email>pkufranky@gmail.com</email>
</author>
<published>2008-04-12T15:05:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d0f64dd44d5f708f77380998b2c16bffe1e94050'/>
<id>urn:sha1:d0f64dd44d5f708f77380998b2c16bffe1e94050</id>
<content type='text'>
The --for-status option is mainly used by builtin-status/commit.
It adds 'Modified submodules:' line at top and  '# ' prefix to all
following lines.

Signed-off-by: Ping Yin &lt;pkufranky@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-submodule: Avoid 'fatal: cannot describe' message</title>
<updated>2008-04-12T00:35:39Z</updated>
<author>
<name>Ping Yin</name>
<email>pkufranky@gmail.com</email>
</author>
<published>2008-04-10T14:45:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a68972c2ad7c3de582abeed03f660e19950ed66f'/>
<id>urn:sha1:a68972c2ad7c3de582abeed03f660e19950ed66f</id>
<content type='text'>
When "git submodule status" command tries to show the name of the
submodule HEAD revision more descriptively, but the submodule
repository lacked a suitable tag to do so, it leaked "fatal: cannot
describe" message to the UI.  Squelch it by using '--always'.

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