author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Wed, 1 Oct 2008 04:04:01 +0000 (11:04 +0700) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 12 Oct 2008 20:21:54 +0000 (13:21 -0700) | ||
commit | 06aaaa0bf70fe37d198893f4e25fa73b6516f8a9 | |
tree | 9dd7147f8450277f5140ba23e9bef028add4c15b | tree | snapshot |
parent | 5c283eb13c94be6ca974aa722159dc9838d10d97 | commit | diff |
Extend index to save more flags
The on-disk format of index only saves 16 bit flags, nearly all have
been used. The last bit (CE_EXTENDED) is used to for future extension.
This patch extends index entry format to save more flags in future.
The new entry format will be used when CE_EXTENDED bit is 1.
Because older implementation may not understand CE_EXTENDED bit and
misread the new format, if there is any extended entry in index, index
header version will turn 3, which makes it incompatible for older git.
If there is none, header version will return to 2 again.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
The on-disk format of index only saves 16 bit flags, nearly all have
been used. The last bit (CE_EXTENDED) is used to for future extension.
This patch extends index entry format to save more flags in future.
The new entry format will be used when CE_EXTENDED bit is 1.
Because older implementation may not understand CE_EXTENDED bit and
misread the new format, if there is any extended entry in index, index
header version will turn 3, which makes it incompatible for older git.
If there is none, header version will return to 2 again.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
cache.h | diff | blob | history | |
read-cache.c | diff | blob | history |