[PATCH 16/32] read-cache: save index SHA-1 after reading

2014-06-13 Thread Nguyễn Thái Ngọc Duy
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 --- cache.h| 1 + read-cache.c | 6 +++

[PATCH 16/32] read-cache: save index SHA-1 after reading

2014-04-28 Thread Nguyễn Thái Ngọc Duy
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 --- cache.h| 1 + read-cache.c | 6 +++