<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/cache.h, branch v2.7.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.7.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.7.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-12-21T18:59:08Z</updated>
<entry>
<title>Merge branch 'bc/format-patch-null-from-line'</title>
<updated>2015-12-21T18:59:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-21T18:59:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fbe959dde7eafcdae859e21cd734c07c7890c0a4'/>
<id>urn:sha1:fbe959dde7eafcdae859e21cd734c07c7890c0a4</id>
<content type='text'>
"format-patch" has learned a new option to zero-out the commit
object name on the mbox "From " line.

* bc/format-patch-null-from-line:
  format-patch: check that header line has expected format
  format-patch: add an option to suppress commit hash
  sha1_file.c: introduce a null_oid constant
</content>
</entry>
<entry>
<title>sha1_file.c: introduce a null_oid constant</title>
<updated>2015-12-14T21:35:54Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2015-12-06T22:16:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e56e7245c37ce57dde72ec74ee2df41ce603dda'/>
<id>urn:sha1:3e56e7245c37ce57dde72ec74ee2df41ce603dda</id>
<content type='text'>
null_oid is the struct object_id equivalent to null_sha1.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/object-id'</title>
<updated>2015-12-10T20:36:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-10T20:36:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=844a9ce47208de173341525c15a4c8c689dd278e'/>
<id>urn:sha1:844a9ce47208de173341525c15a4c8c689dd278e</id>
<content type='text'>
More transition from "unsigned char[40]" to "struct object_id".

This needed a few merge fixups, but is mostly disentangled from other
topics.

* bc/object-id:
  remote: convert functions to struct object_id
  Remove get_object_hash.
  Convert struct object to object_id
  Add several uses of get_object_hash.
  object: introduce get_object_hash macro.
  ref_newer: convert to use struct object_id
  push_refs_with_export: convert to struct object_id
  get_remote_heads: convert to struct object_id
  parse_fetch: convert to use struct object_id
  add_sought_entry_mem: convert to struct object_id
  Convert struct ref to use object_id.
  sha1_file: introduce has_object_file helper.
</content>
</entry>
<entry>
<title>Merge branch 'dt/refs-backend-pre-vtable'</title>
<updated>2015-12-08T22:14:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-08T22:14:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b1cda70fff238aa8947dc8b527dc4a5f6bd4ede0'/>
<id>urn:sha1:b1cda70fff238aa8947dc8b527dc4a5f6bd4ede0</id>
<content type='text'>
Code preparation for pluggable ref backends.

* dt/refs-backend-pre-vtable:
  refs: break out ref conflict checks
  files_log_ref_write: new function
  initdb: make safe_create_dir public
  refs: split filesystem-based refs code into a new file
  refs/refs-internal.h: new header file
  refname_is_safe(): improve docstring
  pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref()
  copy_msg(): rename to copy_reflog_msg()
  verify_refname_available(): new function
  verify_refname_available(): rename function
</content>
</entry>
<entry>
<title>Merge branch 'ad/sha1-update-chunked'</title>
<updated>2015-12-04T19:19:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-04T19:19:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4672123fe5cb629d2a261245fd0a2e003ef35ea3'/>
<id>urn:sha1:4672123fe5cb629d2a261245fd0a2e003ef35ea3</id>
<content type='text'>
Apple's common crypto implementation of SHA1_Update() does not take
more than 4GB at a time, and we now have a compile-time workaround
for it.

* ad/sha1-update-chunked:
  sha1: allow limiting the size of the data passed to SHA1_Update()
  sha1: provide another level of indirection for the SHA-1 functions
</content>
</entry>
<entry>
<title>sha1_file: introduce has_object_file helper.</title>
<updated>2015-11-20T13:02:05Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2015-11-10T02:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b419aa25d5622268f515b26e76420eb2dd89e7e6'/>
<id>urn:sha1:b419aa25d5622268f515b26e76420eb2dd89e7e6</id>
<content type='text'>
Add has_object_file, which is a wrapper around has_sha1_file, but for
struct object_id.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dk/gc-idx-wo-pack'</title>
<updated>2015-11-20T11:55:34Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-11-20T11:55:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=45014beac004a610938a265698605c18ab126087'/>
<id>urn:sha1:45014beac004a610938a265698605c18ab126087</id>
<content type='text'>
Having a leftover .idx file without corresponding .pack file in
the repository hurts performance; "git gc" learned to prune them.

* dk/gc-idx-wo-pack:
  gc: remove garbage .idx files from pack dir
  t5304: test cleaning pack garbage
  prepare_packed_git(): refactor garbage reporting in pack directory
</content>
</entry>
<entry>
<title>initdb: make safe_create_dir public</title>
<updated>2015-11-20T09:52:01Z</updated>
<author>
<name>David Turner</name>
<email>dturner@twopensource.com</email>
</author>
<published>2015-11-10T11:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb33876c262bec79a127b82a3a853ad00665d894'/>
<id>urn:sha1:eb33876c262bec79a127b82a3a853ad00665d894</id>
<content type='text'>
Soon we will want to create initdb functions for ref backends, and
code from initdb that calls this function needs to move into the files
backend. So this function needs to be public.

Signed-off-by: David Turner &lt;dturner@twopensource.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>sha1: allow limiting the size of the data passed to SHA1_Update()</title>
<updated>2015-11-05T18:35:11Z</updated>
<author>
<name>Atousa Pahlevan Duprat</name>
<email>apahlevan@ieee.org</email>
</author>
<published>2015-11-05T06:38:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=001fd7a90b5851f62e700510729a5e09706f9b63'/>
<id>urn:sha1:001fd7a90b5851f62e700510729a5e09706f9b63</id>
<content type='text'>
Using the previous commit's inredirection mechanism for SHA1,
support a chunked implementation of SHA1_Update() that limits the
amount of data in the chunk passed to SHA1_Update().

This is enabled by using the Makefile variable SHA1_MAX_BLOCK_SIZE
to specify chunk size.  When using Apple's CommonCrypto library this
is set to 1GiB (the implementation cannot handle more 4GiB).

Signed-off-by: Atousa Pahlevan Duprat &lt;apahlevan@ieee.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sha1: provide another level of indirection for the SHA-1 functions</title>
<updated>2015-11-05T18:35:11Z</updated>
<author>
<name>Atousa Pahlevan Duprat</name>
<email>apahlevan@ieee.org</email>
</author>
<published>2015-11-05T06:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3bc72fde3f35b988c902abf5a0bc027f2e54d0c1'/>
<id>urn:sha1:3bc72fde3f35b988c902abf5a0bc027f2e54d0c1</id>
<content type='text'>
The git source uses git_SHA1_Update() and friends to call into the
code that computes the hashes.  Traditionally, we used to map these
directly to underlying implementation of the SHA-1 hash (e.g.
SHA1_Update() from OpenSSL or blk_SHA1_Update() from block-sha1/).

This arrangement however makes it hard to tweak behaviour of the
underlying implementation without fully replacing.  If we want to
introduce a tweaked_SHA1_Update() wrapper to implement the "Update"
in a slightly different way, for example, the implementation of the
wrapper still would want to call into the underlying implementation,
but tweaked_SHA1_Update() cannot call git_SHA1_Update() to get to
the underlying implementation (often but not always SHA1_Update()).

Add another level of indirection that maps platform_SHA1_Update()
and friends to their underlying implementations, and by default make
git_SHA1_Update() and friends map to platform_SHA1_* functions.

Doing it this way will later allow us to map git_SHA1_Update() to
tweaked_SHA1_Update(), and the latter can use platform_SHA1_Update()
in its implementation.

Signed-off-by: Atousa Pahlevan Duprat &lt;apahlevan@ieee.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
