diff options
| author | Russell Belfer <rb@github.com> | 2013-03-22 14:27:56 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-03-22 14:27:56 -0700 |
| commit | 1323c6d18049163fc81e5e246e7d4e120c8de03a (patch) | |
| tree | a75d2a576d38890a8c009b299ec2cb744d571282 /tests-clar/clar_libgit2.h | |
| parent | 3ba01362437102501a173b9fe072a5690358baa0 (diff) | |
| download | libgit2-1323c6d18049163fc81e5e246e7d4e120c8de03a.tar.gz | |
Add cl_repo_set_bool and cleanup tests
This adds a helper function for the cases where you want to
quickly set a single boolean config value for a repository.
This allowed me to remove a lot of code.
Diffstat (limited to 'tests-clar/clar_libgit2.h')
| -rw-r--r-- | tests-clar/clar_libgit2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/clar_libgit2.h b/tests-clar/clar_libgit2.h index 667b8050a..93909d8a5 100644 --- a/tests-clar/clar_libgit2.h +++ b/tests-clar/clar_libgit2.h @@ -68,4 +68,7 @@ const char* cl_git_path_url(const char *path); /* Test repository cleaner */ int cl_git_remove_placeholders(const char *directory_path, const char *filename); +/* config setting helpers */ +void cl_repo_set_bool(git_repository *repo, const char *cfg, int value); + #endif |
