diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-05-11 08:55:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-13 10:20:03 +0900 |
commit | 011b648646fcf1f467336ac6bbf46145501c0f12 (patch) | |
tree | e5028919cb4f751528819036a86f9b1d72fa6b2a /cache.h | |
parent | Git 2.17 (diff) | |
download | tgif-011b648646fcf1f467336ac6bbf46145501c0f12.tar.xz |
pack-format.txt: more details on pack file format
The current document mentions OBJ_* constants without their actual
values. A git developer would know these are from cache.h but that's
not very friendly to a person who wants to read this file to implement
a pack file parser.
Similarly, the deltified representation is not documented at all (the
"document" is basically patch-delta.c). Translate that C code to
English with a bit more about what ofs-delta and ref-delta mean.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -373,6 +373,11 @@ extern void free_name_hash(struct index_state *istate); #define read_blob_data_from_cache(path, sz) read_blob_data_from_index(&the_index, (path), (sz)) #endif +/* + * Values in this enum (except those outside the 3 bit range) are part + * of pack file format. See Documentation/technical/pack-format.txt + * for more information. + */ enum object_type { OBJ_BAD = -1, OBJ_NONE = 0, |