diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2019-11-06 11:08:45 +0100 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2019-11-06 11:17:55 +0100 |
commit | 4a4ad2bc8374db6e82464a6f066840430b6657ec (patch) | |
tree | 1b22479d4d60732362ef0db7f1fda4d9a6a51a7f /examples/add.c | |
parent | d4a593ef78e72b25a5ca99c0595b1957da5daa20 (diff) | |
download | libgit2-4a4ad2bc8374db6e82464a6f066840430b6657ec.tar.gz |
examples: add comments to add.c
Diffstat (limited to 'examples/add.c')
-rw-r--r-- | examples/add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/add.c b/examples/add.c index f31fce8ab..b8351721f 100644 --- a/examples/add.c +++ b/examples/add.c @@ -51,9 +51,11 @@ int lg2_add(git_repository *repo, int argc, char **argv) struct index_options options; struct args_info args = ARGS_INFO_INIT; + /* Parse the options & arguments. */ parse_opts(NULL, &options, &args); strarray_from_args(&array, &args); + /* Grab the repository's index. */ check_lg2(git_repository_index(&index, repo), "Could not open repository index", NULL); /* Setup a callback if the requested options need it */ |