author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 11 Jul 2006 19:48:08 +0000 (12:48 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 14 Jul 2006 06:11:56 +0000 (23:11 -0700) | ||
commit | 93821bd97aa516b3b557fc5d1b32fd3431536e44 | |
tree | 830d789c5eed6db77518cc12b037a5aca1a81e59 | tree | snapshot |
parent | 4b7ce6e2d6ba088da50de1df38b040ea2c0b8f18 | commit | diff |
sha1_file: add the ability to parse objects in "pack file format"
The pack-file format is slightly different from the traditional git
object format, in that it has a much denser binary header encoding.
The traditional format uses an ASCII string with type and length
information, which is somewhat wasteful.
A new object format starts with uncompressed binary header
followed by compressed payload -- this will allow us later to
copy the payload straight to packfiles.
Obviously they cannot be read by older versions of git, so for
now new object files are created with the traditional format.
core.legacyheaders configuration item, when set to false makes
the code write in new format for people to experiment with.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
The pack-file format is slightly different from the traditional git
object format, in that it has a much denser binary header encoding.
The traditional format uses an ASCII string with type and length
information, which is somewhat wasteful.
A new object format starts with uncompressed binary header
followed by compressed payload -- this will allow us later to
copy the payload straight to packfiles.
Obviously they cannot be read by older versions of git, so for
now new object files are created with the traditional format.
core.legacyheaders configuration item, when set to false makes
the code write in new format for people to experiment with.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/config.txt | diff | blob | history | |
cache.h | diff | blob | history | |
config.c | diff | blob | history | |
environment.c | diff | blob | history | |
sha1_file.c | diff | blob | history |