<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/cache.h, branch v2.11.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.11.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.11.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-01-31T21:32:11Z</updated>
<entry>
<title>Merge branch 'sb/in-core-index-doc' into maint</title>
<updated>2017-01-31T21:32:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-31T21:32:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1ac2ec6dd833779e2316fe5fc4832c7f86ea6908'/>
<id>urn:sha1:1ac2ec6dd833779e2316fe5fc4832c7f86ea6908</id>
<content type='text'>
Documentation and in-code comments updates.

* sb/in-core-index-doc:
  documentation: retire unfinished documentation
  cache.h: document add_[file_]to_index
  cache.h: document remove_index_entry_at
  cache.h: document index_name_pos
</content>
</entry>
<entry>
<title>cache.h: document add_[file_]to_index</title>
<updated>2017-01-19T20:18:06Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-01-19T03:18:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=20cf41d02158cbb838faec70ad1d989172fc592f'/>
<id>urn:sha1:20cf41d02158cbb838faec70ad1d989172fc592f</id>
<content type='text'>
Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
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>cache.h: document remove_index_entry_at</title>
<updated>2017-01-19T20:17:57Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-01-19T03:18:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3bd72adff1f4435898508f5c74227aaa2561c182'/>
<id>urn:sha1:3bd72adff1f4435898508f5c74227aaa2561c182</id>
<content type='text'>
Do this by moving the existing documentation from
read-cache.c to cache.h.

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>cache.h: document index_name_pos</title>
<updated>2017-01-19T20:13:46Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-01-19T03:18:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=12733e9dd39411be4cd6a9a437faa7d86df159c2'/>
<id>urn:sha1:12733e9dd39411be4cd6a9a437faa7d86df159c2</id>
<content type='text'>
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>compression: unify pack.compression configuration parsing</title>
<updated>2016-11-16T05:16:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-11-16T01:42:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8de7eeb54b6aaa6d429b5d9c2b667847c35480ff'/>
<id>urn:sha1:8de7eeb54b6aaa6d429b5d9c2b667847c35480ff</id>
<content type='text'>
There are three codepaths that use a variable whose name is
pack_compression_level to affect how objects and deltas sent to a
packfile is compressed.  Unlike zlib_compression_level that controls
the loose object compression, however, this variable was static to
each of these codepaths.  Two of them read the pack.compression
configuration variable, using core.compression as the default, and
one of them also allowed overriding it from the command line.

The other codepath in bulk-checkin did not pay any attention to the
configuration.

Unify the configuration parsing to git_default_config(), where we
implement the parsing of core.loosecompression and core.compression
and make the former override the latter, by moving code to parse
pack.compression and also allow core.compression to give default to
this variable.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ls/git-open-cloexec'</title>
<updated>2016-10-31T20:15:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-31T20:15:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=906d6906fb580f2002bfdaadab80da6884bab16f'/>
<id>urn:sha1:906d6906fb580f2002bfdaadab80da6884bab16f</id>
<content type='text'>
Git generally does not explicitly close file descriptors that were
open in the parent process when spawning a child process, but most
of the time the child does not want to access them. As Windows does
not allow removing or renaming a file that has a file descriptor
open, a slow-to-exit child can even break the parent process by
holding onto them.  Use O_CLOEXEC flag to open files in various
codepaths.

* ls/git-open-cloexec:
  read-cache: make sure file handles are not inherited by child processes
  sha1_file: open window into packfiles with O_CLOEXEC
  sha1_file: rename git_open_noatime() to git_open()
</content>
</entry>
<entry>
<title>Merge branch 'jk/no-looking-at-dotgit-outside-repo'</title>
<updated>2016-10-27T21:58:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-27T21:58:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0d9c527d5963fca098ea4964f4129511bd5d82d8'/>
<id>urn:sha1:0d9c527d5963fca098ea4964f4129511bd5d82d8</id>
<content type='text'>
Update "git diff --no-index" codepath not to try to peek into .git/
directory that happens to be under the current directory, when we
know we are operating outside any repository.

* jk/no-looking-at-dotgit-outside-repo:
  diff: handle sha1 abbreviations outside of repository
  diff_aligned_abbrev: use "struct oid"
  diff_unique_abbrev: rename to diff_aligned_abbrev
  find_unique_abbrev: use 4-buffer ring
  test-*-cache-tree: setup git dir
  read info/{attributes,exclude} only when in repository
</content>
</entry>
<entry>
<title>Merge branch 'jk/abbrev-auto'</title>
<updated>2016-10-27T21:58:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-27T21:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d7ae013a3173c621a3556be6834d459ece60e130'/>
<id>urn:sha1:d7ae013a3173c621a3556be6834d459ece60e130</id>
<content type='text'>
Updates the way approximate count of total objects is computed
while attempting to come up with a unique abbreviated object name,
which in turn needs to estimate how many hexdigits are necessary to
ensure uniqueness.

* jk/abbrev-auto:
  find_unique_abbrev: move logic out of get_short_sha1()
</content>
</entry>
<entry>
<title>Merge branch 'lt/abbrev-auto'</title>
<updated>2016-10-27T21:58:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-27T21:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=580d820ece78100c5e2b8b5874d7aed5d76715f2'/>
<id>urn:sha1:580d820ece78100c5e2b8b5874d7aed5d76715f2</id>
<content type='text'>
Allow the default abbreviation length, which has historically been
7, to scale as the repository grows.  The logic suggests to use 12
hexdigits for the Linux kernel, and 9 to 10 for Git itself.

* lt/abbrev-auto:
  abbrev: auto size the default abbreviation
  abbrev: prepare for new world order
  abbrev: add FALLBACK_DEFAULT_ABBREV to prepare for auto sizing
</content>
</entry>
<entry>
<title>find_unique_abbrev: use 4-buffer ring</title>
<updated>2016-10-26T20:30:51Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-10-20T06:19:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef2ed5013c4160284d9de18903bd4f7d0542d810'/>
<id>urn:sha1:ef2ed5013c4160284d9de18903bd4f7d0542d810</id>
<content type='text'>
Some code paths want to format multiple abbreviated sha1s in
the same output line. Because we use a single static buffer
for our return value, they have to either break their output
into several calls or allocate their own arrays and use
find_unique_abbrev_r().

Intead, let's mimic sha1_to_hex() and use a ring of several
buffers, so that the return value stays valid through
multiple calls. This shortens some of the callers, and makes
it harder to for them to make a silly mistake.

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