Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2012-10-30 05:04:21 +0400
committerEdward Thomson <ethomson@edwardthomson.com>2012-10-30 05:04:21 +0400
commitf45ec1a076e2347ba5d63eeb2d158f87b612e5cb (patch)
tree2e2bebc12e64e6f48eabde6010bf775b3fc6cd6e /examples/general.c
parent81eecc342b3580e9b05e501c8ee75c7e2e0dca1a (diff)
index refactoring
Diffstat (limited to 'examples/general.c')
-rw-r--r--examples/general.c2
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);