<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/commit-slab.h, branch v2.13.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.13.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.13.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-08-12T16:47:37Z</updated>
<entry>
<title>Merge branch 'vs/typofix'</title>
<updated>2016-08-12T16:47:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-12T16:47:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6b8f80653063cd41903c599ec9ca83be3d3afa5'/>
<id>urn:sha1:e6b8f80653063cd41903c599ec9ca83be3d3afa5</id>
<content type='text'>
* vs/typofix:
  Spelling fixes
</content>
</entry>
<entry>
<title>Spelling fixes</title>
<updated>2016-08-11T21:35:42Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2016-08-09T08:53:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2e3a16b279a9df2e498187871c67e623e12bc8a4'/>
<id>urn:sha1:2e3a16b279a9df2e498187871c67e623e12bc8a4</id>
<content type='text'>
    &lt;BAD&gt;                     &lt;CORRECTED&gt;
    accidently                accidentally
    commited                  committed
    dependancy                dependency
    emtpy                     empty
    existance                 existence
    explicitely               explicitly
    git-upload-achive         git-upload-archive
    hierachy                  hierarchy
    indegee                   indegree
    intial                    initial
    mulitple                  multiple
    non-existant              non-existent
    precendence.              precedence.
    priviledged               privileged
    programatically           programmatically
    psuedo-binary             pseudo-binary
    soemwhere                 somewhere
    successfull               successful
    transfering               transferring
    uncommited                uncommitted
    unkown                    unknown
    usefull                   useful
    writting                  writing

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>Merge branch 'js/commit-slab-decl-fix'</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=7a3ea666331cd6cf8d9a7a15aafc33459b8c571c'/>
<id>urn:sha1:7a3ea666331cd6cf8d9a7a15aafc33459b8c571c</id>
<content type='text'>
* js/commit-slab-decl-fix:
  commit-slab.h: avoid duplicated global static variables
  config.c: avoid duplicated global static variables
</content>
</entry>
<entry>
<title>commit-slab.h: avoid duplicated global static variables</title>
<updated>2016-08-09T17:20:06Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2016-08-09T14:17:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af920e369778a4cc42519ef523131d29451bf79b'/>
<id>urn:sha1:af920e369778a4cc42519ef523131d29451bf79b</id>
<content type='text'>
The gigantic define_commit_slab() macro repeats the definition of a
static variable that occurs earlier in the macro text. The purpose of
the repeated definition at the end of the macro is that it takes the
semicolon that occurs where the macro is used.

We cannot just remove the first definition of the variable because it
is referenced elsewhere in the macro text, and defining the macro later
would produce undefined identifier errors. We cannot have a "forward"
declaration, either. (This works only with "extern" global variables.)

The solution is to use a declaration of a struct that is already defined
earlier. This language construct can serve the same purpose as the
duplicated static variable definition, but without the confusion.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/commit-slab'</title>
<updated>2015-08-03T18:01:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-08-03T18:01:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=720e20eb68a476d43e59b9bd568da6cc4932a5ef'/>
<id>urn:sha1:720e20eb68a476d43e59b9bd568da6cc4932a5ef</id>
<content type='text'>
Memory use reduction when commit-slab facility is used to annotate
sparsely (which is not recommended in the first place).

* jc/commit-slab:
  commit-slab: introduce slabname##_peek() function
</content>
</entry>
<entry>
<title>commit-slab: introduce slabname##_peek() function</title>
<updated>2015-05-22T21:40:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-14T22:25:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=862e730ec1c13f28bfb7c8c9ecb39bcc92dd0922'/>
<id>urn:sha1:862e730ec1c13f28bfb7c8c9ecb39bcc92dd0922</id>
<content type='text'>
There is no API to ask "Does this commit have associated data in
slab?".  If an application wants to (1) parse just a few commits at
the beginning of a process, (2) store data for only these commits,
and then (3) start processing many commits, taking into account the
data stored (for a few of them) in the slab, the application would
use slabname##_at() to allocate a space to store data in (2), but
there is no API other than slabname##_at() to use in step (3).  This
allocates and wastes new space for these commits the caller is only
interested in checking if they have data stored in step (2).

Introduce slabname##_peek(), which is similar to slabname##_at() but
returns NULL when there is no data already associated to it in such
a use case.

Helped-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use REALLOC_ARRAY for changing the allocation size of arrays</title>
<updated>2014-09-18T16:13:42Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-09-16T18:56:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2756ca4347cbda05b16954cd7f445c216b935e76'/>
<id>urn:sha1:2756ca4347cbda05b16954cd7f445c216b935e76</id>
<content type='text'>
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-slab: provide a static initializer</title>
<updated>2014-06-13T19:08:17Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-06-10T21:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=80cdaba569600154d91819d2e252f6b7dd9cff73'/>
<id>urn:sha1:80cdaba569600154d91819d2e252f6b7dd9cff73</id>
<content type='text'>
Callers currently must use init_foo_slab() at runtime before
accessing a slab. For global slabs, it's much nicer if we
can initialize them in BSS, so that each user does not have
to add code to check-and-initialize.

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>commit-slab: sizeof() the right type in xrealloc</title>
<updated>2013-12-02T20:46:01Z</updated>
<author>
<name>Thomas Rast</name>
<email>tr@thomasrast.ch</email>
</author>
<published>2013-12-01T20:41:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cde0a0576c8950599ef11184bc35aea648f7e717'/>
<id>urn:sha1:cde0a0576c8950599ef11184bc35aea648f7e717</id>
<content type='text'>
When allocating the slab, the code accidentally computed the array
size from s-&gt;slab (an elemtype**).  The slab is an array of elemtype*,
however, so we should take the size of *s-&gt;slab.

Noticed-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Thomas Rast &lt;tr@thomasrast.ch&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-slab: declare functions "static inline"</title>
<updated>2013-11-27T18:44:15Z</updated>
<author>
<name>Thomas Rast</name>
<email>tr@thomasrast.ch</email>
</author>
<published>2013-11-25T20:04:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9e03a77994f4bf030760e2644f718776de0eb39'/>
<id>urn:sha1:e9e03a77994f4bf030760e2644f718776de0eb39</id>
<content type='text'>
This shuts up compiler warnings about unused functions.  No such
warnings are currently triggered, but if someone were to actually
use init_NAME_with_stride() as documented, they would get a warning
about init_NAME() being unused.

While there, write a comment about why the last real declaration of
the variable is without a terminating semicolon, while another
forward declarations have one.

Signed-off-by: Thomas Rast &lt;tr@thomasrast.ch&gt;
Helped-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
