<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/submodule-config.c, branch v2.10.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.10.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.10.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-08-10T19:33:20Z</updated>
<entry>
<title>Merge branch 'sb/submodule-update-dot-branch'</title>
<updated>2016-08-10T19:33:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-10T19:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=11b53957ac81dc31668a1d8fe65d19d5f60dd501'/>
<id>urn:sha1:11b53957ac81dc31668a1d8fe65d19d5f60dd501</id>
<content type='text'>
A few updates to "git submodule update".

Use of "| wc -l" break with BSD variant of 'wc'.

* sb/submodule-update-dot-branch:
  t7406: fix breakage on OSX
  submodule update: allow '.' for branch value
  submodule--helper: add remote-branch helper
  submodule-config: keep configured branch around
  submodule--helper: fix usage string for relative-path
  submodule update: narrow scope of local variable
  submodule update: respect depth in subsequent fetches
  t7406: future proof tests with hard coded depth
</content>
</entry>
<entry>
<title>Merge branch 'va/i18n'</title>
<updated>2016-08-08T21:48:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-08T21:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=768ededa9c4e804ead6d473d4fe3a8092a77b05c'/>
<id>urn:sha1:768ededa9c4e804ead6d473d4fe3a8092a77b05c</id>
<content type='text'>
More i18n marking.

* va/i18n:
  i18n: config: unfold error messages marked for translation
  i18n: notes: mark comment for translation
</content>
</entry>
<entry>
<title>Merge branch 'rs/submodule-config-code-cleanup'</title>
<updated>2016-08-03T22:10:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-03T22:10:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f4fa8a9b18a840539edf908bb82b54c5f82aab31'/>
<id>urn:sha1:f4fa8a9b18a840539edf908bb82b54c5f82aab31</id>
<content type='text'>
Code cleanup.

* rs/submodule-config-code-cleanup:
  submodule-config: fix test binary crashing when no arguments given
  submodule-config: combine early return code into one goto
  submodule-config: passing name reference for .gitmodule blobs
  submodule-config: use explicit empty string instead of strbuf in config_from()
</content>
</entry>
<entry>
<title>submodule-config: keep configured branch around</title>
<updated>2016-08-01T21:42:07Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2016-07-29T00:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5944f3476dbaee15649b0fa02b2b35aaa149dc3'/>
<id>urn:sha1:b5944f3476dbaee15649b0fa02b2b35aaa149dc3</id>
<content type='text'>
The branch field will be used in a later patch by `submodule update`.

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>submodule-config: combine early return code into one goto</title>
<updated>2016-07-28T20:05:31Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2016-07-28T12:49:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0918e25077cb9321011a973703cc597b078f0ab5'/>
<id>urn:sha1:0918e25077cb9321011a973703cc597b078f0ab5</id>
<content type='text'>
So we have simpler return handling code and all the cleanup code in
almost one place.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&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-config: passing name reference for .gitmodule blobs</title>
<updated>2016-07-28T20:05:14Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2016-07-28T12:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=514dea905a3c72c8f7268347793f2947efd547be'/>
<id>urn:sha1:514dea905a3c72c8f7268347793f2947efd547be</id>
<content type='text'>
Commit 959b5455 (submodule: implement a config API for lookup of
.gitmodules values, 2015-08-18) implemented the initial version of the
submodule config cache. During development of that initial version we
extracted the function gitmodule_sha1_from_commit(). During that process
we missed that the strbuf rev was still used in config_from() and now is
left empty. Lets fix this by also returning this string.

This means that now when reading .gitmodules from revisions, the error
messages also contain a reference to the blob they are from.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&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>i18n: config: unfold error messages marked for translation</title>
<updated>2016-07-28T16:11:09Z</updated>
<author>
<name>Vasco Almeida</name>
<email>vascomalmeida@sapo.pt</email>
</author>
<published>2016-07-28T13:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b8132d99d80ca98218c2685bbe5ba016a0a42f8'/>
<id>urn:sha1:1b8132d99d80ca98218c2685bbe5ba016a0a42f8</id>
<content type='text'>
Introduced in 473166b ("config: add 'origin_type' to config_source
struct", 2016-02-19), Git can inform the user about the origin of a
config error, but the implementation does not allow translators to
translate the keywords 'file', 'blob, 'standard input', and
'submodule-blob'. Moreover, for the second message, a reason for the
error is appended to the message, not allowing translators to translate
that reason either.

Unfold the message into several templates for each known origin_type.
That would result in better translation at the expense of code
verbosity.

Add enum config_oringin_type to ease management of the various
configuration origin types (blob, file, etc).  Previously origin type
was considered from command line if cf-&gt;origin_type == NULL, i.e.,
uninitialized. Now we set origin_type to CONFIG_ORIGIN_CMDLINE in
git_config_from_parameters() and configset_add_value().

For error message in git_parse_source(), use xstrfmt() function to
prepare the message string, instead of doing something like it's done
for die_bad_number(), because intelligibility and code conciseness are
improved for that instance.

Signed-off-by: Vasco Almeida &lt;vascomalmeida@sapo.pt&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/cocci'</title>
<updated>2016-07-19T20:22:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-07-19T20:22:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a63d31b4d3640960d9a71606eee80c32459f906e'/>
<id>urn:sha1:a63d31b4d3640960d9a71606eee80c32459f906e</id>
<content type='text'>
Conversion from unsigned char sha1[20] to struct object_id
continues.

* bc/cocci:
  diff: convert prep_temp_blob() to struct object_id
  merge-recursive: convert merge_recursive_generic() to object_id
  merge-recursive: convert leaf functions to use struct object_id
  merge-recursive: convert struct merge_file_info to object_id
  merge-recursive: convert struct stage_data to use object_id
  diff: rename struct diff_filespec's sha1_valid member
  diff: convert struct diff_filespec to struct object_id
  coccinelle: apply object_id Coccinelle transformations
  coccinelle: convert hashcpy() with null_sha1 to hashclr()
  contrib/coccinelle: add basic Coccinelle transforms
  hex: add oid_to_hex_r()
</content>
</entry>
<entry>
<title>submodule-config: use explicit empty string instead of strbuf in config_from()</title>
<updated>2016-07-19T19:16:57Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-07-19T19:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=508a285ceab4523412546a92cd9444f8e78065e1'/>
<id>urn:sha1:508a285ceab4523412546a92cd9444f8e78065e1</id>
<content type='text'>
Use a string constant instead of an empty strbuf to shorten the code
and make it easier to read.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>coccinelle: convert hashcpy() with null_sha1 to hashclr()</title>
<updated>2016-06-28T18:39:02Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2016-06-24T23:09:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f449198e58630b8b57c94e3eeab4927afd7ee03a'/>
<id>urn:sha1:f449198e58630b8b57c94e3eeab4927afd7ee03a</id>
<content type='text'>
hashcpy with null_sha1 as the source is equivalent to hashclr.  In
addition to being simpler, using hashclr may give the compiler a chance
to optimize better.  Convert instances of hashcpy with the source
argument of null_sha1 to hashclr.

This transformation was implemented using the following semantic patch:

@@
expression E1;
@@
-hashcpy(E1, null_sha1);
+hashclr(E1);

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
