diff options
author | Alex Budovski <abudovski@gmail.com> | 2011-01-11 16:07:45 +1100 |
---|---|---|
committer | Alex Budovski <abudovski@gmail.com> | 2011-01-11 18:31:55 +1100 |
commit | f0bde7fac0796bb6d7bfe794bd049041f2133905 (patch) | |
tree | 8d0b13c20236ca2faa2017fe9ca4fa69b9efb0a5 /src/git2/index.h | |
parent | e0c23b88c57a5d765e5572d8ed317a4ba4da102a (diff) | |
download | libgit2-f0bde7fac0796bb6d7bfe794bd049041f2133905.tar.gz |
Revised platform types to use 'best supported' size.
This will allow graceful migration to 64 bit file sizes and timestamps should
git's binary interface be extended to allow this.
Diffstat (limited to 'src/git2/index.h')
-rw-r--r-- | src/git2/index.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/git2/index.h b/src/git2/index.h index f0cae09b1..f1716fead 100644 --- a/src/git2/index.h +++ b/src/git2/index.h @@ -45,7 +45,8 @@ GIT_BEGIN_DECL /** Time used in a git index entry */ typedef struct { - unsigned int seconds; + git_time_t seconds; + /* nsec should not be stored as time_t compatible */ unsigned int nanoseconds; } git_index_time; @@ -59,7 +60,7 @@ typedef struct git_index_entry { unsigned int mode; unsigned int uid; unsigned int gid; - unsigned int file_size; + git_off_t file_size; git_oid oid; |