<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/oidmap.c, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-12-27T20:28:06Z</updated>
<entry>
<title>oidmap: ensure map is initialized</title>
<updated>2017-12-27T20:28:06Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-12-22T23:27:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2a5a028c778febb6776da16ab18fb4de79014f0'/>
<id>urn:sha1:e2a5a028c778febb6776da16ab18fb4de79014f0</id>
<content type='text'>
Ensure that an oidmap is initialized before attempting to add, remove,
or retrieve an entry by simply performing the initialization step
before accessing the underlying hashmap.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>oidmap: map with OID as key</title>
<updated>2017-10-01T08:18:03Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2017-09-29T22:54:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e6fabde82e91366a7fea5a81e795d26bbe7e10d'/>
<id>urn:sha1:9e6fabde82e91366a7fea5a81e795d26bbe7e10d</id>
<content type='text'>
This is similar to using the hashmap in hashmap.c, but with an
easier-to-use API. In particular, custom entry comparisons no longer
need to be written, and lookups can be done without constructing a
temporary entry structure.

This is implemented as a thin wrapper over the hashmap API. In
particular, this means that there is an additional 4-byte overhead due
to the fact that the first 4 bytes of the hash is redundantly stored.
For now, I'm taking the simpler approach, but if need be, we can
reimplement oidmap without affecting the callers significantly.

oidset has been updated to use oidmap.

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