<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/commit.c, branch v2.12.2</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=v2.12.2</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=v2.12.2'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2017-03-21T22:03:29Z</updated>
<entry>
<title>Merge branch 'rs/commit-parsing-optim' into maint</title>
<updated>2017-03-21T22:03:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-21T22:03:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=d6bc22e64b9572f72b2eb26fa1ce9d697d9d0d8e'/>
<id>urn:sha1:d6bc22e64b9572f72b2eb26fa1ce9d697d9d0d8e</id>
<content type='text'>
The code that parses header fields in the commit object has been
updated for (micro)performance and code hygiene.

* rs/commit-parsing-optim:
  commit: don't check for space twice when looking for header
  commit: be more precise when searching for headers
</content>
</entry>
<entry>
<title>commit: don't check for space twice when looking for header</title>
<updated>2017-02-27T19:20:18Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-02-25T19:27:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=b072504ce17564bcfd8cb82d6e3948720626065d'/>
<id>urn:sha1:b072504ce17564bcfd8cb82d6e3948720626065d</id>
<content type='text'>
Both standard_header_field() and excluded_header_field() check if
there's a space after the buffer that's handed to them.  We already
check in the caller if that space is present.  Don't bother calling
the functions if it's missing, as they are guaranteed to return 0 in
that case, and remove the now redundant checks from them.

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>commit: be more precise when searching for headers</title>
<updated>2017-02-27T19:20:17Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-02-25T19:21:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=50a01cc48c9a46fe75e4a014fb7847c2f4482406'/>
<id>urn:sha1:50a01cc48c9a46fe75e4a014fb7847c2f4482406</id>
<content type='text'>
Search for a space character only within the current line in
read_commit_extra_header_lines() instead of searching in the whole
buffer (and possibly beyond, if it's not NUL-terminated) and then
discarding any results after the end of the current line.

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>commit: make ignore_non_trailer take buf/len</title>
<updated>2016-11-29T22:22:18Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2016-11-02T17:29:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=710714aaa822acbad14f1b7100fa2776d2bc8ce6'/>
<id>urn:sha1:710714aaa822acbad14f1b7100fa2776d2bc8ce6</id>
<content type='text'>
Make ignore_non_trailer take a buf/len pair instead of struct strbuf.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/copy-array' into maint</title>
<updated>2016-10-11T21:18:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-11T21:18:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a813b19190a75e44b6ebd1ea5317ef5ed914cde0'/>
<id>urn:sha1:a813b19190a75e44b6ebd1ea5317ef5ed914cde0</id>
<content type='text'>
Code cleanup.

* rs/copy-array:
  use COPY_ARRAY
  add COPY_ARRAY
</content>
</entry>
<entry>
<title>Merge branch 'rs/copy-array'</title>
<updated>2016-10-03T20:30:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-03T20:30:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=b1f0a856605981363053941b8210f3cc9389607a'/>
<id>urn:sha1:b1f0a856605981363053941b8210f3cc9389607a</id>
<content type='text'>
Code cleanup.

* rs/copy-array:
  use COPY_ARRAY
  add COPY_ARRAY
</content>
</entry>
<entry>
<title>use COPY_ARRAY</title>
<updated>2016-09-25T23:44:13Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-09-25T07:24:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=45ccef87b3cc0ab09ec5fd1186aa0b33298ee8d4'/>
<id>urn:sha1:45ccef87b3cc0ab09ec5fd1186aa0b33298ee8d4</id>
<content type='text'>
Add a semantic patch for converting certain calls of memcpy(3) to
COPY_ARRAY() and apply that transformation to the code base.  The result
is
 shorter and safer code.  For now only consider calls where source and
destination have the same type, or in other words: easy cases.

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>i18n: commit: mark message for translation</title>
<updated>2016-09-19T17:55:36Z</updated>
<author>
<name>Vasco Almeida</name>
<email>vascomalmeida@sapo.pt</email>
</author>
<published>2016-09-19T13:08:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4fa4b31507f28b3a6486e44b620ab36c6380cb7d'/>
<id>urn:sha1:4fa4b31507f28b3a6486e44b620ab36c6380cb7d</id>
<content type='text'>
Mark message commit_utf8_warn for translation.

Update tests to reflect changes.

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 'rs/pull-signed-tag'</title>
<updated>2016-08-19T22:34:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-19T22:34:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=aeb1b7f55d5db4eda968de5eb27f04d42df9edc1'/>
<id>urn:sha1:aeb1b7f55d5db4eda968de5eb27f04d42df9edc1</id>
<content type='text'>
When "git merge-recursive" works on history with many criss-cross
merges in "verbose" mode, the names the command assigns to the
virtual merge bases could have overwritten each other by unintended
reuse of the same piece of memory.

* rs/pull-signed-tag:
  commit: use FLEX_ARRAY in struct merge_remote_desc
  merge-recursive: fix verbose output for multiple base trees
  commit: factor out set_merge_remote_desc()
  commit: use xstrdup() in get_merge_parent()
</content>
</entry>
<entry>
<title>commit: use FLEX_ARRAY in struct merge_remote_desc</title>
<updated>2016-08-14T02:48:07Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-08-13T12:21:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5447a76aad4074c31e7c8a6299cc586435f385e9'/>
<id>urn:sha1:5447a76aad4074c31e7c8a6299cc586435f385e9</id>
<content type='text'>
Convert the name member of struct merge_remote_desc to a FLEX_ARRAY and
use FLEX_ALLOC_STR to build the struct.  This halves the number of
memory allocations, saves the storage for a pointer and avoids an
indirection when reading the name.

Suggested-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
