<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/cache.h, branch v2.13.6</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v2.13.6</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v2.13.6'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2017-08-01T19:27:31Z</updated>
<entry>
<title>Merge tag 'v2.12.4' into maint</title>
<updated>2017-08-01T19:27:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-01T19:27:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e312af164c12052b7a0dbf8f7b86549a3c5b578f'/>
<id>urn:sha1:e312af164c12052b7a0dbf8f7b86549a3c5b578f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge tag 'v2.11.3' into maint-2.12</title>
<updated>2017-07-30T22:04:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-30T22:04:22Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3def5e9a8de16c505d369187ac3ec2ff87ab562a'/>
<id>urn:sha1:3def5e9a8de16c505d369187ac3ec2ff87ab562a</id>
<content type='text'>
Git 2.11.3
</content>
</entry>
<entry>
<title>Merge tag 'v2.10.4' into maint-2.11</title>
<updated>2017-07-30T22:01:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-30T22:01:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=05bb78abc179b47f6288b990c1ba8f3d403cad1d'/>
<id>urn:sha1:05bb78abc179b47f6288b990c1ba8f3d403cad1d</id>
<content type='text'>
Git 2.10.4
</content>
</entry>
<entry>
<title>Merge tag 'v2.9.5' into maint-2.10</title>
<updated>2017-07-30T21:57:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-30T21:57:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d78f06a1b70f3743899b5494f55a456596e51a63'/>
<id>urn:sha1:d78f06a1b70f3743899b5494f55a456596e51a63</id>
<content type='text'>
Git 2.9.5
</content>
</entry>
<entry>
<title>Merge tag 'v2.8.6' into maint-2.9</title>
<updated>2017-07-30T21:52:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-30T21:52:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=af0178aec7c38cb17bc641bc361656cc90bc6b79'/>
<id>urn:sha1:af0178aec7c38cb17bc641bc361656cc90bc6b79</id>
<content type='text'>
Git 2.8.6
</content>
</entry>
<entry>
<title>Merge tag 'v2.7.6' into maint-2.8</title>
<updated>2017-07-30T21:46:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-30T21:46:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7720c33f632c2d67b53169030a7ed2e0e6ae8fde'/>
<id>urn:sha1:7720c33f632c2d67b53169030a7ed2e0e6ae8fde</id>
<content type='text'>
Git 2.7.6
</content>
</entry>
<entry>
<title>connect: factor out "looks like command line option" check</title>
<updated>2017-07-28T22:51:56Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-07-28T19:25:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2491f77b90c2e5d47acbe7472c17e7de0af74f63'/>
<id>urn:sha1:2491f77b90c2e5d47acbe7472c17e7de0af74f63</id>
<content type='text'>
We reject hostnames that start with a dash because they may
be confused for command-line options. Let's factor out that
notion into a helper function, as we'll use it in more
places. And while it's simple now, it's not clear if some
systems might need more complex logic to handle all cases.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>get_sha1_with_context: dynamically allocate oc-&gt;path</title>
<updated>2017-05-24T01:59:27Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-05-19T12:54:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dc944b65f1d13e258edc88a7608e2fe957ec334e'/>
<id>urn:sha1:dc944b65f1d13e258edc88a7608e2fe957ec334e</id>
<content type='text'>
When a sha1 lookup returns the tree path via "struct
object_context", it just copies it into a fixed-size buffer.
This means the result can be truncated, and it means our
"struct object_context" consumes a lot of stack space.

Instead, let's allocate a string on the heap. Because most
callers don't care about this information, we'll avoid doing
it by default (so they don't all have to start calling
free() on the result). There are basically two options for
the caller to signal to us that it's interested:

  1. By setting a pointer to storage in the object_context.

  2. By passing a flag in another parameter.

Doing (1) would match the way that sha1_object_info_extended()
works. But it would mean that every caller would have to
initialize the object_context, which they don't currently
have to do.

This patch does (2), and adds a new bit to the function's
flags field. All of the callers that look at the "path"
field are updated to pass the new flag.

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>sha1_name: consistently refer to object_context as "oc"</title>
<updated>2017-05-24T01:59:27Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-05-19T12:52:06Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c0a487eafb63301004af424bf02b1951abdc4da7'/>
<id>urn:sha1:c0a487eafb63301004af424bf02b1951abdc4da7</id>
<content type='text'>
An early version of the patch to add object_context used the
name object_resolve_context. This was later shortened to
just object_context, but the "orc" variable name stuck in a
few places.  Let's use "oc", which is used elsewhere in the
code.

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>Merge branch 'jh/add-index-entry-optim'</title>
<updated>2017-04-26T06:39:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-04-26T06:39:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6cbc478d83b5773d1925869e50bf6067306f4817'/>
<id>urn:sha1:6cbc478d83b5773d1925869e50bf6067306f4817</id>
<content type='text'>
"git checkout" that handles a lot of paths has been optimized by
reducing the number of unnecessary checks of paths in the
has_dir_name() function.

* jh/add-index-entry-optim:
  read-cache: speed up has_dir_name (part 2)
  read-cache: speed up has_dir_name (part 1)
  read-cache: speed up add_index_entry during checkout
  p0006-read-tree-checkout: perf test to time read-tree
  read-cache: add strcmp_offset function
</content>
</entry>
</feed>
