Re: [ANNOUNCE] git-pasky-0.3

David Woodhouse
2005-04-12T13:14:54Z

On Mon, 2005-04-11 at 15:57 +0200, Petr Baudis wrote:
> Hello,
>
> here goes git-pasky-0.3, my set of patches and scripts upon
> Linus' git, aimed at human usability and to an extent a SCM-like
> usage.

Untar, make, add to path, pull, 'git diff' fails on PPC:

peach /home/dwmw2/git-pasky-base $ git diff
error: bad signature
error: verify header failed
read_cache: Invalid argument

A little extra debugging shows the problem:

error: bad signature 0x43524944 should be 0x44495243

The cache.h header file suggests that the cache is host-endian on
purpose, because it's local-only. So why am I seeing a cache from
another host? Is that comment no longer true?

Either way, the original decision is probably bogus -- with trees as
large as the kernel tree it makes a lot of sense to keep them somewhere
NFS-accessible and use them from different hosts, and byteswapping
really isn't going to slow it down that much. We should just pick an
endianness and stick to it.

I'd suggest making it big-endian to make sure the LE weenies don't
forget to byteswap properly.

--
dwmw2