mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 05:28:34 +00:00
![]() This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple. |
||
---|---|---|
.. | ||
attr | ||
buf | ||
checkout | ||
clone | ||
commit | ||
config | ||
core | ||
date | ||
diff | ||
index | ||
network | ||
notes | ||
object | ||
odb | ||
refs | ||
repo | ||
reset | ||
resources | ||
revwalk | ||
status | ||
threads | ||
clar | ||
clar_helpers.c | ||
clar_libgit2.h | ||
README.md |
Writing Clar tests for libgit2
For information on the Clar testing framework and a detailed introduction please visit:
https://github.com/tanoku/clar
-
Write your modules and tests. Use good, meaningful names.
-
Make sure you actually build the tests by setting:
cmake -DBUILD_CLAR=ON build/
-
Test:
./build/libgit2_clar
-
Make sure everything is fine.
-
Send your pull request. That's it.