]> git.proxmox.com Git - libgit2.git/commitdiff
Flag optional parameters for apply and pop
authorRemy Suen <remy.suen@gmail.com>
Thu, 9 Feb 2017 10:12:31 +0000 (19:12 +0900)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2017 10:12:31 +0000 (19:12 +0900)
The options parameter in both git_stash_apply and git_stash_pop can
be NULL. They should be flagged as such in the documentation.

include/git2/stash.h

index 733d75a7f8f0e5019c0ccdfd8f2d7a842158274b..3af9cde38b6d4658d7d759d6e12efd5d3fd51dc7 100644 (file)
@@ -173,7 +173,7 @@ GIT_EXTERN(int) git_stash_apply_init_options(
  * @param repo The owning repository.
  * @param index The position within the stash list. 0 points to the
  *              most recent stashed state.
- * @param options Options to control how stashes are applied.
+ * @param options Optional options to control how stashes are applied.
  *
  * @return 0 on success, GIT_ENOTFOUND if there's no stashed state for the
  *         given index, GIT_EMERGECONFLICT if changes exist in the working
@@ -242,7 +242,7 @@ GIT_EXTERN(int) git_stash_drop(
  * @param repo The owning repository.
  * @param index The position within the stash list. 0 points to the
  *              most recent stashed state.
- * @param options Options to control how stashes are applied.
+ * @param options Optional options to control how stashes are applied.
  *
  * @return 0 on success, GIT_ENOTFOUND if there's no stashed state for the given
  * index, or error code. (see git_stash_apply() above for details)