summaryrefslogtreecommitdiff
path: root/examples/showindex.c
diff options
context:
space:
mode:
authorScott Chacon <schacon@gmail.com>2011-06-15 09:38:55 -0700
committerScott Chacon <schacon@gmail.com>2011-06-15 09:40:06 -0700
commit96da90ae1f5b1a90b387832d3b970bd6ef1cefbd (patch)
tree4f901d4501d8d434cf87a04420ed7100f72ab54a /examples/showindex.c
parent2e6d8ec4369abbc360f7a5ce3ccd62295ac93f19 (diff)
downloadlibgit2-96da90ae1f5b1a90b387832d3b970bd6ef1cefbd.tar.gz
update examples content to be compilable and up to date
Diffstat (limited to 'examples/showindex.c')
-rw-r--r--examples/showindex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/showindex.c b/examples/showindex.c
index 908a114f4..7f2130b90 100644
--- a/examples/showindex.c
+++ b/examples/showindex.c
@@ -12,9 +12,9 @@ int main (int argc, char** argv)
char out[41];
out[40] = '\0';
- git_repository_open(&repo, "/tmp/gittalk/.git");
+ git_repository_open(&repo, "/opt/libgit2-test/.git");
- git_index_open_inrepo(&index, repo);
+ git_repository_index(&index, repo);
git_index_read(index);
ecount = git_index_entrycount(index);