summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-05-23 16:07:54 -0700
committerJosh Triplett <josh@joshtriplett.org>2020-05-23 16:07:54 -0700
commit5278a0061100e2527e83f4cb159b40fc58bc786c (patch)
treec910273e15e7e27604846e8da4edc217b33d1dd9 /include
parent0bc091ddb231b201ce22294cd529d37ae40b25cc (diff)
downloadlibgit2-5278a0061100e2527e83f4cb159b40fc58bc786c.tar.gz
git_packbuilder_write: Allow setting path to NULL to use the default path
If given a NULL path, write to the object path of the repository. Add tests for the new behavior.
Diffstat (limited to 'include')
-rw-r--r--include/git2/pack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/pack.h b/include/git2/pack.h
index 922a3cd9d..3b9beb665 100644
--- a/include/git2/pack.h
+++ b/include/git2/pack.h
@@ -155,7 +155,7 @@ GIT_EXTERN(int) git_packbuilder_write_buf(git_buf *buf, git_packbuilder *pb);
* Write the new pack and corresponding index file to path.
*
* @param pb The packbuilder
- * @param path to the directory where the packfile and index should be stored
+ * @param path Path to the directory where the packfile and index should be stored, or NULL for default location
* @param mode permissions to use creating a packfile or 0 for defaults
* @param progress_cb function to call with progress information from the indexer (optional)
* @param progress_cb_payload payload for the progress callback (optional)