author | Linus Torvalds <torvalds@linux-foundation.org> | |
Tue, 15 Jan 2008 00:03:17 +0000 (16:03 -0800) | ||
committer | Linus Torvalds <torvalds@linux-foundation.org> | |
Mon, 21 Jan 2008 20:44:31 +0000 (12:44 -0800) | ||
commit | 7a51ed66f653c248993b3c4a61932e47933d835e | |
tree | eb40e8e3b00979deee24e0a03a32b5f25d1f275e | tree | snapshot |
parent | ce33288ea6b81a2f4f5aecd72177bcc8174562ae | commit | diff |
Make on-disk index representation separate from in-core one
This converts the index explicitly on read and write to its on-disk
format, allowing the in-core format to contain more flags, and be
simpler.
In particular, the in-core format is now host-endian (as opposed to the
on-disk one that is network endian in order to be able to be shared
across machines) and as a result we can dispense with all the
htonl/ntohl on accesses to the cache_entry fields.
This will make it easier to make use of various temporary flags that do
not exist in the on-disk format.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This converts the index explicitly on read and write to its on-disk
format, allowing the in-core format to contain more flags, and be
simpler.
In particular, the in-core format is now host-endian (as opposed to the
on-disk one that is network endian in order to be able to be shared
across machines) and as a result we can dispense with all the
htonl/ntohl on accesses to the cache_entry fields.
This will make it easier to make use of various temporary flags that do
not exist in the on-disk format.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
21 files changed:
builtin-apply.c | diff | blob | history | |
builtin-blame.c | diff | blob | history | |
builtin-commit.c | diff | blob | history | |
builtin-fsck.c | diff | blob | history | |
builtin-grep.c | diff | blob | history | |
builtin-ls-files.c | diff | blob | history | |
builtin-read-tree.c | diff | blob | history | |
builtin-rerere.c | diff | blob | history | |
builtin-update-index.c | diff | blob | history | |
cache-tree.c | diff | blob | history | |
cache.h | diff | blob | history | |
diff-lib.c | diff | blob | history | |
dir.c | diff | blob | history | |
entry.c | diff | blob | history | |
merge-index.c | diff | blob | history | |
merge-recursive.c | diff | blob | history | |
reachable.c | diff | blob | history | |
read-cache.c | diff | blob | history | |
sha1_name.c | diff | blob | history | |
tree.c | diff | blob | history | |
unpack-trees.c | diff | blob | history |