mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move invalidate_dive_cache() to struct dive
Seems natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1b593dc56c
commit
72bb38601d
11 changed files with 42 additions and 44 deletions
|
@ -1512,7 +1512,7 @@ static int dive_directory(const char *root, const git_tree_entry *entry, const c
|
|||
|
||||
finish_active_dive(state);
|
||||
create_new_dive(utc_mktime(&tm), state);
|
||||
memcpy(state->active_dive->git_id, git_tree_entry_id(entry)->id, 20);
|
||||
memcpy(state->active_dive->git_id.data(), git_tree_entry_id(entry)->id, 20);
|
||||
return GIT_WALK_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue