summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-11-12 10:31:48 +0000
committerPatrick Steinhardt <ps@pks.im>2018-06-22 09:52:12 +0200
commitc16556aaddffc1d663c6403747d793adc0819e0a (patch)
tree6bf65254b08ffa9eb528e392b8b44bc274eedcba /examples
parenta616fb1668fcf406dbcd8dcc241d5a3613669e62 (diff)
downloadlibgit2-c16556aaddffc1d663c6403747d793adc0819e0a.tar.gz
indexer: introduce options struct to `git_indexer_new`
We strive to keep an options structure to many functions to be able to extend options in the future without breaking the API. `git_indexer_new` doesn't have one right now, but we want to be able to add an option for enabling strict packfile verification. Add a new `git_indexer_options` structure and adjust callers to use that.
Diffstat (limited to 'examples')
-rw-r--r--examples/network/index-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/index-pack.c b/examples/network/index-pack.c
index 314f21160..5962f90e4 100644
--- a/examples/network/index-pack.c
+++ b/examples/network/index-pack.c
@@ -46,7 +46,7 @@ int index_pack(git_repository *repo, int argc, char **argv)
return EXIT_FAILURE;
}
- if (git_indexer_new(&idx, ".", 0, NULL, NULL, NULL) < 0) {
+ if (git_indexer_new(&idx, ".", 0, NULL, NULL) < 0) {
puts("bad idx");
return -1;
}