diff options
| author | Vicent Martà <vicent@github.com> | 2012-10-30 11:51:58 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-10-30 11:51:58 -0700 |
| commit | 6c21358a89efe5d4b8c5ab26dd707500653ba911 (patch) | |
| tree | 1ab30e4eafa3cff21fb8d6564bcb788b3b03aab6 /examples/showindex.c | |
| parent | 6cfbbf7e3205e902bd94bf16743127c705e3e588 (diff) | |
| parent | f45ec1a076e2347ba5d63eeb2d158f87b612e5cb (diff) | |
| download | libgit2-6c21358a89efe5d4b8c5ab26dd707500653ba911.tar.gz | |
Merge pull request #1029 from ethomson/index_refactor
Index changes
Diffstat (limited to 'examples/showindex.c')
| -rw-r--r-- | examples/showindex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/showindex.c b/examples/showindex.c index 7f2130b90..d26fbaebd 100644 --- a/examples/showindex.c +++ b/examples/showindex.c @@ -19,12 +19,13 @@ int main (int argc, char** argv) ecount = git_index_entrycount(index); for (i = 0; i < ecount; ++i) { - git_index_entry *e = git_index_get(index, i); + git_index_entry *e = git_index_get_byindex(index, i); oid = e->oid; git_oid_fmt(out, &oid); printf("File Path: %s\n", e->path); + printf(" Stage: %d\n", git_index_entry_stage(e)); printf(" Blob SHA: %s\n", out); printf("File Size: %d\n", (int)e->file_size); printf(" Device: %d\n", (int)e->dev); |
