diff options
| author | Russell Belfer <rb@github.com> | 2014-03-28 16:50:49 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2014-04-01 09:48:37 -0700 |
| commit | db0e7878d386e40080d4004e483e4845b15f8bd7 (patch) | |
| tree | c93fb113c4285a376722286e5be76a6213fae66e /src/index.h | |
| parent | 69b6ffc4c53d578800274993b5222fa5a7699f21 (diff) | |
| download | libgit2-db0e7878d386e40080d4004e483e4845b15f8bd7.tar.gz | |
Make submodule refresh a bit smarter
This makes submodule cache refresh actually look at the timestamps
from the data sources for submodules and reload as needed if they
have changed since the last refresh.
Diffstat (limited to 'src/index.h')
| -rw-r--r-- | src/index.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/index.h b/src/index.h index 259a3149f..17f04f0ad 100644 --- a/src/index.h +++ b/src/index.h @@ -62,4 +62,11 @@ extern void git_index__set_ignore_case(git_index *index, bool ignore_case); extern unsigned int git_index__create_mode(unsigned int mode); +GIT_INLINE(const git_futils_filestamp *) git_index__filestamp(git_index *index) +{ + return &index->stamp; +} + +extern int git_index__changed_relative_to(git_index *index, const git_futils_filestamp *fs); + #endif |
