diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2012-10-29 20:04:21 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2012-10-29 20:04:21 -0500 |
commit | f45ec1a076e2347ba5d63eeb2d158f87b612e5cb (patch) | |
tree | 2e2bebc12e64e6f48eabde6010bf775b3fc6cd6e /examples/general.c | |
parent | 81eecc342b3580e9b05e501c8ee75c7e2e0dca1a (diff) | |
download | libgit2-f45ec1a076e2347ba5d63eeb2d158f87b612e5cb.tar.gz |
index refactoring
Diffstat (limited to 'examples/general.c')
-rw-r--r-- | examples/general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/general.c b/examples/general.c index e001a6889..d9467f5b5 100644 --- a/examples/general.c +++ b/examples/general.c @@ -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(index, i); + git_index_entry *e = git_index_get_byindex(index, i); printf("path: %s\n", e->path); printf("mtime: %d\n", (int)e->mtime.seconds); |