diff options
| author | Etienne Samson <samson.etienne@gmail.com> | 2018-06-29 14:39:13 +0200 |
|---|---|---|
| committer | Etienne Samson <samson.etienne@gmail.com> | 2018-06-29 14:39:13 +0200 |
| commit | d0921127c9ff2baaa8a766de43d3921933ad919d (patch) | |
| tree | cf5c1021570ca9e5c6acb5780fa1561ff21d5cf6 /tests/clar_libgit2.h | |
| parent | 83c35f7ea4f48a1f805c53277e65ab5e8429c6a7 (diff) | |
| download | libgit2-d0921127c9ff2baaa8a766de43d3921933ad919d.tar.gz | |
tests: add a helper to build sandbox subpaths quickly
Diffstat (limited to 'tests/clar_libgit2.h')
| -rw-r--r-- | tests/clar_libgit2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h index c72d37db3..618aed02d 100644 --- a/tests/clar_libgit2.h +++ b/tests/clar_libgit2.h @@ -181,6 +181,13 @@ git_repository *cl_git_sandbox_init_new(const char *name); void cl_git_sandbox_cleanup(void); git_repository *cl_git_sandbox_reopen(void); +/* + * build a sandbox-relative from path segments + * is_dir will add a trailing slash + * vararg must be a NULL-terminated char * list + */ +const char *cl_git_sandbox_path(int is_dir, ...); + /* Local-repo url helpers */ const char* cl_git_fixture_url(const char *fixturename); const char* cl_git_path_url(const char *path); |
