diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-03 21:09:18 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-03 21:09:18 -0700 |
commit | 72518e9c2623af0b5de864a7b66208ea94aacadb (patch) | |
tree | 42d0ed3b6202af7e9f60639101e36827bd200128 /object.h | |
parent | 7042dbf7a1e9137eb856b3b086a062561c50b8a3 (diff) | |
download | git-72518e9c2623af0b5de864a7b66208ea94aacadb.tar.gz |
more lightweight revalidation while reusing deflated stream in packing
When copying from an existing pack and when copying from a loose
object with new style header, the code makes sure that the piece
we are going to copy out inflates well and inflate() consumes
the data in full while doing so.
The check to see if the xdelta really apply is quite expensive
as you described, because you would need to have the image of
the base object which can be represented as a delta against
something else.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'object.h')
-rw-r--r-- | object.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -27,17 +27,6 @@ struct object_array { /* * The object type is stored in 3 bits. */ -enum object_type { - OBJ_NONE = 0, - OBJ_COMMIT = 1, - OBJ_TREE = 2, - OBJ_BLOB = 3, - OBJ_TAG = 4, - /* 5/6 for future expansion */ - OBJ_DELTA = 7, - OBJ_BAD, -}; - struct object { unsigned parsed : 1; unsigned used : 1; |