Commit 4a4ad2bc8374db6e82464a6f066840430b6657ec

Etienne Samson 2019-11-06T11:08:45

examples: add comments to add.c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/examples/add.c b/examples/add.c
index f31fce8..b835172 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 */