Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
d01737b4
Commit
d01737b4
authored
May 13, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3117 from libgit2/cmn/index-more-accurate
index: make the entries have more accurate sizes
parents
b0c4b642
ca294279
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
include/git2/index.h
+15
-10
No files found.
include/git2/index.h
View file @
d01737b4
...
...
@@ -24,9 +24,9 @@ GIT_BEGIN_DECL
/** Time structure used in a git index entry */
typedef
struct
{
git_time
_t
seconds
;
int32
_t
seconds
;
/* nsec should not be stored as time_t compatible */
u
nsigned
in
t
nanoseconds
;
u
int32_
t
nanoseconds
;
}
git_index_time
;
/**
...
...
@@ -44,22 +44,27 @@ typedef struct {
* accessed via the later `GIT_IDXENTRY_...` bitmasks below. Some of
* these flags are read from and written to disk, but some are set aside
* for in-memory only reference.
*
* Note that the time and size fields are truncated to 32 bits. This
* is enough to detect changes, which is enough for the index to
* function as a cache, but it should not be taken as an authoritative
* source for that data.
*/
typedef
struct
git_index_entry
{
git_index_time
ctime
;
git_index_time
mtime
;
u
nsigned
in
t
dev
;
u
nsigned
in
t
ino
;
u
nsigned
in
t
mode
;
u
nsigned
in
t
uid
;
u
nsigned
in
t
gid
;
git_off
_t
file_size
;
u
int32_
t
dev
;
u
int32_
t
ino
;
u
int32_
t
mode
;
u
int32_
t
uid
;
u
int32_
t
gid
;
uint32
_t
file_size
;
git_oid
id
;
u
nsigned
shor
t
flags
;
u
nsigned
shor
t
flags_extended
;
u
int16_
t
flags
;
u
int16_
t
flags_extended
;
const
char
*
path
;
}
git_index_entry
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment