diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-20 16:17:28 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-20 16:17:28 +0200 |
commit | 624c949f01ca553fdd0b42fbac439e822c1bdd5f (patch) | |
tree | c506e0d65967c0f6e51c7595aa383fe0107e29e8 /src/submodule.h | |
parent | 5e947c91d49aacc8abb5b3f018737c72c52486a9 (diff) | |
download | libgit2-cmn/index-checksum.tar.gz |
index: make relative comparison use the checksum as wellcmn/index-checksum
This is used by the submodule in order to figure out if the index has
changed since it last read it. Using a timestamp is racy, so let's make
it use the checksum, just like we now do for reloading the index itself.
Diffstat (limited to 'src/submodule.h')
-rw-r--r-- | src/submodule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.h b/src/submodule.h index a6182beca..7a9bf9c92 100644 --- a/src/submodule.h +++ b/src/submodule.h @@ -110,7 +110,7 @@ typedef struct { /* cache invalidation data */ git_oid head_id; - git_futils_filestamp index_stamp; + git_oid index_checksum; git_buf gitmodules_path; git_futils_filestamp gitmodules_stamp; git_futils_filestamp config_stamp; |