<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat, branch v2.0.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.0.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.0.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-07-22T17:25:02Z</updated>
<entry>
<title>Merge branch 'cb/byte-order' into maint</title>
<updated>2014-07-22T17:25:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-22T17:25:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1fbc6e6e6062c14f21d0d826aaa3c154dba0f9e8'/>
<id>urn:sha1:1fbc6e6e6062c14f21d0d826aaa3c154dba0f9e8</id>
<content type='text'>
* cb/byte-order:
  compat/bswap.h: fix endianness detection
  compat/bswap.h: restore preference __BIG_ENDIAN over BIG_ENDIAN
  compat/bswap.h: detect endianness on more platforms that don't use BYTE_ORDER
</content>
</entry>
<entry>
<title>use xcalloc() to allocate zero-initialized memory</title>
<updated>2014-07-21T17:30:21Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-07-19T13:56:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=51a60f5bfbaf1ee7c7a2d2b73eca4f042f7af8cb'/>
<id>urn:sha1:51a60f5bfbaf1ee7c7a2d2b73eca4f042f7af8cb</id>
<content type='text'>
Use xcalloc() instead of xmalloc() followed by memset() to allocate
and zero out memory because it's shorter and avoids duplicating the
function parameters.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ym/fix-opportunistic-index-update-race' into maint</title>
<updated>2014-06-25T18:49:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-25T18:49:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1881d2b88c4b889dcb95782ad4bc5395808438e9'/>
<id>urn:sha1:1881d2b88c4b889dcb95782ad4bc5395808438e9</id>
<content type='text'>
"git status", even though it is a read-only operation, tries to
update the index with refreshed lstat(2) info to optimize future
accesses to the working tree opportunistically, but this could
race with a "read-write" operation that modify the index while it
is running.  Detect such a race and avoid overwriting the index.

* ym/fix-opportunistic-index-update-race:
  read-cache.c: verify index file before we opportunistically update it
  wrapper.c: add xpread() similar to xread()
</content>
</entry>
<entry>
<title>compat/bswap.h: fix endianness detection</title>
<updated>2014-05-30T18:48:28Z</updated>
<author>
<name>Ben Walton</name>
<email>bdwalton@gmail.com</email>
</author>
<published>2014-05-30T15:22:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c65ee15ee11c9b9d2fc9d7306fb1e238b35d0c1'/>
<id>urn:sha1:9c65ee15ee11c9b9d2fc9d7306fb1e238b35d0c1</id>
<content type='text'>
The changes to make detection of endianness more portable had a bug
that breaks on (at least) Solaris x86.

The bug appears to be a simple copy/paste typo. It checks for
_BIG_ENDIAN and not _LITTLE_ENDIAN for both the case where we would
decide the system is big endian and little endian. Instead, the
second test should be for _LITTLE_ENDIAN and not _BIG_ENDIAN.

Two fixes were possible:

 1. Change the negation order of the conditions in the second test.
 2. Reverse the order of the conditions in the second test.

Use the second option so that the condition we expect is always a
positive check.

Signed-off-by: Ben Walton &lt;bdwalton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>compat/bswap.h: restore preference __BIG_ENDIAN over BIG_ENDIAN</title>
<updated>2014-05-02T19:36:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-02T19:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=839fa9c500c7771d15831e2bcf77697cd70620f9'/>
<id>urn:sha1:839fa9c500c7771d15831e2bcf77697cd70620f9</id>
<content type='text'>
The previous commit swaps the order we check the macros defined by
the compiler and the system headers from the original.  Since the
order of check should not matter (i.e. it is insane to define both
__BIG_ENDIAN and friends and BIG_ENDIAN and friends and in a
conflicting way), it is the most conservative thing to do not to
change it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>compat/bswap.h: detect endianness on more platforms that don't use BYTE_ORDER</title>
<updated>2014-05-02T19:31:59Z</updated>
<author>
<name>Charles Bailey</name>
<email>cbailey32@bloomberg.net</email>
</author>
<published>2014-05-02T07:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3cf6bb34063406e107f51aa52db67d65839f5e58'/>
<id>urn:sha1:3cf6bb34063406e107f51aa52db67d65839f5e58</id>
<content type='text'>
Signed-off-by: Charles Bailey &lt;cbailey32@bloomberg.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>wrapper.c: add xpread() similar to xread()</title>
<updated>2014-04-10T19:18:55Z</updated>
<author>
<name>Yiannis Marangos</name>
<email>yiannis.marangos@gmail.com</email>
</author>
<published>2014-04-10T18:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9aa91af0361e3c32fde5f8388dee963838308cd6'/>
<id>urn:sha1:9aa91af0361e3c32fde5f8388dee963838308cd6</id>
<content type='text'>
It is a common mistake to call read(2)/pread(2) and forget to
anticipate that they may return error with EAGAIN/EINTR when the
system call is interrupted.

We have xread() helper to relieve callers of read(2) from having to
worry about it; add xpread() helper to do the same for pread(2).

Update the caller in the builtin/index-pack.c and the mmap emulation
in compat/.

Signed-off-by: Yiannis Marangos &lt;yiannis.marangos@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/commit-dates-parsing-fix'</title>
<updated>2014-04-08T18:59:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-08T18:59:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdb830c44567ebbdec497e6af21b87d4e43539cc'/>
<id>urn:sha1:bdb830c44567ebbdec497e6af21b87d4e43539cc</id>
<content type='text'>
Finishing touches for portability.

* jk/commit-dates-parsing-fix:
  t4212: loosen far-in-future test for AIX
  date: recognize bogus FreeBSD gmtime output
</content>
</entry>
<entry>
<title>date: recognize bogus FreeBSD gmtime output</title>
<updated>2014-04-01T21:39:04Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-04-01T21:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6654754779d2a90af91a9c6b93d7e4e7ee16cfab'/>
<id>urn:sha1:6654754779d2a90af91a9c6b93d7e4e7ee16cfab</id>
<content type='text'>
Most gmtime implementations return a NULL value when they
encounter an error (and this behavior is specified by ANSI C
and POSIX).  FreeBSD's implementation, however, will simply
leave the "struct tm" untouched.  Let's also recognize this
and convert it to a NULL (with this patch, t4212 should pass
on FreeBSD).

Reported-by: René Scharfe &lt;l.s.r@web.de&gt;
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 'mr/msvc-link-with-lcurl'</title>
<updated>2014-03-31T23:31:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-31T23:31:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8456113de56a1d1407703b1d4d8e789a54b987c9'/>
<id>urn:sha1:8456113de56a1d1407703b1d4d8e789a54b987c9</id>
<content type='text'>
* mr/msvc-link-with-lcurl:
  MSVC: allow linking with the cURL library
</content>
</entry>
</feed>
