<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/alloc.c, branch v2.19.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v2.19.0</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v2.19.0'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2018-08-15T18:52:09Z</updated>
<entry>
<title>alloc: make allocate_alloc_state and clear_alloc_state more consistent</title>
<updated>2018-08-15T18:52:09Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2018-08-15T17:54:06Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=17313107454de99c0ebdf1a981b1f6a2b17dc2f5'/>
<id>urn:sha1:17313107454de99c0ebdf1a981b1f6a2b17dc2f5</id>
<content type='text'>
Since both functions are using the same data type, they should either both
refer to it as void *, or both use the real type (struct alloc_state *).
Opt for the latter.

Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/object-store-alloc'</title>
<updated>2018-06-25T20:22:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-06-25T20:22:38Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=110240588d5c0ca88d3b55da52068f59d8d6367d'/>
<id>urn:sha1:110240588d5c0ca88d3b55da52068f59d8d6367d</id>
<content type='text'>
The conversion to pass "the_repository" and then "a_repository"
throughout the object access API continues.

* sb/object-store-alloc:
  alloc: allow arbitrary repositories for alloc functions
  object: allow create_object to handle arbitrary repositories
  object: allow grow_object_hash to handle arbitrary repositories
  alloc: add repository argument to alloc_commit_index
  alloc: add repository argument to alloc_report
  alloc: add repository argument to alloc_object_node
  alloc: add repository argument to alloc_tag_node
  alloc: add repository argument to alloc_commit_node
  alloc: add repository argument to alloc_tree_node
  alloc: add repository argument to alloc_blob_node
  object: add repository argument to grow_object_hash
  object: add repository argument to create_object
  repository: introduce parsed objects field
</content>
</entry>
<entry>
<title>commit: add generation number to struct commit</title>
<updated>2018-05-22T03:36:25Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-04-25T14:37:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=83073cc994cc3cd364f3f213478b9162476e8e44'/>
<id>urn:sha1:83073cc994cc3cd364f3f213478b9162476e8e44</id>
<content type='text'>
The generation number of a commit is defined recursively as follows:

* If a commit A has no parents, then the generation number of A is one.
* If a commit A has parents, then the generation number of A is one
  more than the maximum generation number among the parents of A.

Add a uint32_t generation field to struct commit so we can pass this
information to revision walks. We use three special values to signal
the generation number is invalid:

GENERATION_NUMBER_INFINITY 0xFFFFFFFF
GENERATION_NUMBER_MAX 0x3FFFFFFF
GENERATION_NUMBER_ZERO 0

The first (_INFINITY) means the generation number has not been loaded or
computed. The second (_MAX) means the generation number is too large to
store in the commit-graph file. The third (_ZERO) means the generation
number was loaded from a commit graph file that was written by a version
of git that did not support generation numbers.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>alloc: allow arbitrary repositories for alloc functions</title>
<updated>2018-05-16T02:16:50Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-15T21:48:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=14ba97f81c7b94e10d591b363688a073023f332d'/>
<id>urn:sha1:14ba97f81c7b94e10d591b363688a073023f332d</id>
<content type='text'>
We have to convert all of the alloc functions at once, because alloc_report
uses a funky macro for reporting. It is better for the sake of mechanical
conversion to convert multiple functions at once rather than changing the
structure of the reporting function.

We record all memory allocation in alloc.c, and free them in
clear_alloc_state, which is called for all repositories except
the_repository.

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>alloc: add repository argument to alloc_commit_index</title>
<updated>2018-05-09T03:12:36Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-08T19:37:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dd5d9deb0155a27cb2d74d1a0faf0af84ef5f355'/>
<id>urn:sha1:dd5d9deb0155a27cb2d74d1a0faf0af84ef5f355</id>
<content type='text'>
This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

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>alloc: add repository argument to alloc_report</title>
<updated>2018-05-09T03:12:36Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-08T19:37:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=17bfe87369a726ebf3b1156ffd38c014bbd67e88'/>
<id>urn:sha1:17bfe87369a726ebf3b1156ffd38c014bbd67e88</id>
<content type='text'>
This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

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>alloc: add repository argument to alloc_object_node</title>
<updated>2018-05-09T03:12:36Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-08T19:37:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=13e3fdcb767fe860953f8c27eb1985bd5d15674d'/>
<id>urn:sha1:13e3fdcb767fe860953f8c27eb1985bd5d15674d</id>
<content type='text'>
This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

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>alloc: add repository argument to alloc_tag_node</title>
<updated>2018-05-09T03:12:36Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-08T19:37:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a0bd9086bb66fa8cb84bd4fac6441699121e1327'/>
<id>urn:sha1:a0bd9086bb66fa8cb84bd4fac6441699121e1327</id>
<content type='text'>
This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

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>alloc: add repository argument to alloc_commit_node</title>
<updated>2018-05-09T03:12:36Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-08T19:37:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8ba0e5ec57e4a7da18f735416e3028a9a8b8b1ad'/>
<id>urn:sha1:8ba0e5ec57e4a7da18f735416e3028a9a8b8b1ad</id>
<content type='text'>
This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

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>alloc: add repository argument to alloc_tree_node</title>
<updated>2018-05-09T03:12:36Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-05-08T19:37:28Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=cf7203bdc65f11de89d27f52115cb98052c52ce8'/>
<id>urn:sha1:cf7203bdc65f11de89d27f52115cb98052c52ce8</id>
<content type='text'>
This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

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