<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/packfile.c, branch v2.17.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.17.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.17.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-03-06T22:54:07Z</updated>
<entry>
<title>Merge branch 'bw/c-plus-plus'</title>
<updated>2018-03-06T22:54:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-03-06T22:54:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=169c9c0169a00876f699678ac66ebe9563b0c29f'/>
<id>urn:sha1:169c9c0169a00876f699678ac66ebe9563b0c29f</id>
<content type='text'>
Avoid using identifiers that clash with C++ keywords.  Even though
it is not a goal to compile Git with C++ compilers, changes like
this help use of code analysis tools that targets C++ on our
codebase.

* bw/c-plus-plus: (37 commits)
  replace: rename 'new' variables
  trailer: rename 'template' variables
  tempfile: rename 'template' variables
  wrapper: rename 'template' variables
  environment: rename 'namespace' variables
  diff: rename 'template' variables
  environment: rename 'template' variables
  init-db: rename 'template' variables
  unpack-trees: rename 'new' variables
  trailer: rename 'new' variables
  submodule: rename 'new' variables
  split-index: rename 'new' variables
  remote: rename 'new' variables
  ref-filter: rename 'new' variables
  read-cache: rename 'new' variables
  line-log: rename 'new' variables
  imap-send: rename 'new' variables
  http: rename 'new' variables
  entry: rename 'new' variables
  diffcore-delta: rename 'new' variables
  ...
</content>
</entry>
<entry>
<title>Merge branch 'jt/binsearch-with-fanout'</title>
<updated>2018-02-27T18:34:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-27T18:34:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2fcbeb3bf2dfc198e9727d7c5fec15fa7a00a5c'/>
<id>urn:sha1:f2fcbeb3bf2dfc198e9727d7c5fec15fa7a00a5c</id>
<content type='text'>
Refactor the code to binary search starting from a fan-out table
(which is how the packfile is indexed with object names) into a
reusable helper.

* jt/binsearch-with-fanout:
  packfile: refactor hash search with fanout table
  packfile: remove GIT_DEBUG_LOOKUP log statements
</content>
</entry>
<entry>
<title>packfile: refactor hash search with fanout table</title>
<updated>2018-02-15T21:08:55Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2018-02-13T18:39:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4e00f7306a160639f047b3421985e8f3d0c6fb1'/>
<id>urn:sha1:b4e00f7306a160639f047b3421985e8f3d0c6fb1</id>
<content type='text'>
Subsequent patches will introduce file formats that make use of a fanout
array and a sorted table containing hashes, just like packfiles.
Refactor the hash search in packfile.c into its own function, so that
those patches can make use of it as well.

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>packfile: remove GIT_DEBUG_LOOKUP log statements</title>
<updated>2018-02-15T21:08:53Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2018-02-13T18:39:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4669e7d68ec8fb6ff3572a1193ae75ae2094b8e6'/>
<id>urn:sha1:4669e7d68ec8fb6ff3572a1193ae75ae2094b8e6</id>
<content type='text'>
In commit 628522ec1439 ("sha1-lookup: more memory efficient search in
sorted list of SHA-1", 2008-04-09), a different algorithm for searching
a sorted list was introduced, together with a set of log statements
guarded by GIT_DEBUG_LOOKUP that are invoked both when using that
algorithm and when using the existing binary search. Those log
statements was meant for experiments and debugging, but with the removal
of the aforementioned different algorithm in commit f1068efefe6d
("sha1_file: drop experimental GIT_USE_LOOKUP search", 2017-08-09),
those log statements are probably no longer necessary.

Remove those statements.

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>object: rename function 'typename' to 'type_name'</title>
<updated>2018-02-14T21:10:05Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-02-14T18:59:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=debca9d2fe784193dc2d9f98b5edac605ddfefbb'/>
<id>urn:sha1:debca9d2fe784193dc2d9f98b5edac605ddfefbb</id>
<content type='text'>
Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.

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>object_info: change member name from 'typename' to 'type_name'</title>
<updated>2018-02-14T21:10:05Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-02-14T18:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6ca32f47145370b6c0d956d1f8568d7e0595f195'/>
<id>urn:sha1:6ca32f47145370b6c0d956d1f8568d7e0595f195</id>
<content type='text'>
Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.

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>Merge branch 'ds/use-get-be64'</title>
<updated>2018-02-13T21:39:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-13T21:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2dc69eef1b92aab539164a098558c8f51a12f36f'/>
<id>urn:sha1:2dc69eef1b92aab539164a098558c8f51a12f36f</id>
<content type='text'>
Code clean-up.

* ds/use-get-be64:
  packfile: use get_be64() for large offsets
</content>
</entry>
<entry>
<title>Merge branch 'gs/retire-mru'</title>
<updated>2018-02-13T21:39:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-13T21:39:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=867622398f7e7a8a7c6e7a5418e7cbdcffc44d02'/>
<id>urn:sha1:867622398f7e7a8a7c6e7a5418e7cbdcffc44d02</id>
<content type='text'>
Retire mru API as it does not give enough abstraction over
underlying list API to be worth it.

* gs/retire-mru:
  mru: Replace mru.[ch] with list.h implementation
</content>
</entry>
<entry>
<title>Merge branch 'ot/mru-on-list'</title>
<updated>2018-02-13T21:39:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-13T21:39:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=afc8aa3fbf249cfc2f75c7586b9d32f172ab97a1'/>
<id>urn:sha1:afc8aa3fbf249cfc2f75c7586b9d32f172ab97a1</id>
<content type='text'>
The first step to getting rid of mru API and using the
doubly-linked list API directly instead.

* ot/mru-on-list:
  mru: use double-linked list from list.h
</content>
</entry>
<entry>
<title>mru: Replace mru.[ch] with list.h implementation</title>
<updated>2018-01-24T17:52:16Z</updated>
<author>
<name>Gargi Sharma</name>
<email>gs051095@gmail.com</email>
</author>
<published>2018-01-23T23:46:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec2dd32c705f43ef133a54cee99426c44eb3ab88'/>
<id>urn:sha1:ec2dd32c705f43ef133a54cee99426c44eb3ab88</id>
<content type='text'>
Replace the custom calls to mru.[ch] with calls to list.h. This patch is
the final step in removing the mru API completely and inlining the logic.
This patch leads to significant code reduction and the mru API hence, is
not a useful abstraction anymore.

Signed-off-by: Gargi Sharma &lt;gs051095@gmail.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
