Skip to content

Commit 4a4ad2b

Browse files
committed
examples: add comments to add.c
1 parent d4a593e commit 4a4ad2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/add.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ int lg2_add(git_repository *repo, int argc, char **argv)
5151
struct index_options options;
5252
struct args_info args = ARGS_INFO_INIT;
5353

54+
/* Parse the options & arguments. */
5455
parse_opts(NULL, &options, &args);
5556
strarray_from_args(&array, &args);
5657

58+
/* Grab the repository's index. */
5759
check_lg2(git_repository_index(&index, repo), "Could not open repository index", NULL);
5860

5961
/* Setup a callback if the requested options need it */

0 commit comments

Comments
 (0)