diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-06-13 19:19:35 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-13 11:49:39 -0700 |
commit | e93021b20a73af8ff51f9ddd8c98f44fd103f360 (patch) | |
tree | 81eac1241c7421e98d705fba74ebb4e76f8faca4 /Documentation/technical/index-format.txt | |
parent | entry.c: update cache_changed if refresh_cache is set in checkout_entry() (diff) | |
download | tgif-e93021b20a73af8ff51f9ddd8c98f44fd103f360.tar.xz |
read-cache: save index SHA-1 after reading
Also update SHA-1 after writing. If we do not do that, the second
read_index() will see "initialized" variable already set and not read
.git/index again, which is fine, except istate->sha1 now has a stale
value.
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 'Documentation/technical/index-format.txt')
0 files changed, 0 insertions, 0 deletions