summaryrefslogtreecommitdiff
path: root/src/git2/index.h
diff options
context:
space:
mode:
authorAlex Budovski <abudovski@gmail.com>2011-01-11 16:07:45 +1100
committerAlex Budovski <abudovski@gmail.com>2011-01-11 18:31:55 +1100
commitf0bde7fac0796bb6d7bfe794bd049041f2133905 (patch)
tree8d0b13c20236ca2faa2017fe9ca4fa69b9efb0a5 /src/git2/index.h
parente0c23b88c57a5d765e5572d8ed317a4ba4da102a (diff)
downloadlibgit2-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.h5
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;