Commit ca2ff5abb8d321b185007be11ea1ad8959e9708d

Dmitry Lobanov 2021-06-01T17:52:57

submodule: git submodule dup documentation has been fixed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/include/git2/submodule.h b/include/git2/submodule.h
index e5bd4c7..857c62f 100644
--- a/include/git2/submodule.h
+++ b/include/git2/submodule.h
@@ -227,8 +227,8 @@ GIT_EXTERN(int) git_submodule_lookup(
  * Create an in-memory copy of a submodule. The copy must be explicitly
  * free'd or it will leak.
  *
- * @param out Pointer to store the copy of the submodule
- * @param source Original tag to copy
+ * @param out Pointer to store the copy of the submodule. Cannot be NULL.
+ * @param source Original submodule to copy.
  */
 GIT_EXTERN(int) git_submodule_dup(git_submodule **out, git_submodule *source);