API updates for index.h

This commit is contained in:
Ben Straub
2012-11-20 19:57:46 -07:00
parent d9023dbe0c
commit f45d51ff8e
15 changed files with 63 additions and 62 deletions

View File

@@ -371,7 +371,7 @@ int main (int argc, char** argv)
// All these properties are exported publicly in the `git_index_entry` struct
ecount = git_index_entrycount(index);
for (i = 0; i < ecount; ++i) {
git_index_entry *e = git_index_get_byindex(index, i);
const git_index_entry *e = git_index_get_byindex(index, i);
printf("path: %s\n", e->path);
printf("mtime: %d\n", (int)e->mtime.seconds);