mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 00:30:16 +00:00
![]() When processing status for a newly checked out repo, it is possible that there will be submodules that have not yet been initialized. The only way to distinguish these from untracked directories is to have some knowledge of submodules. This commit adds a new submodule API which, given a name or path, can determine if it appears to be a submodule and can give information about the submodule. |
||
---|---|---|
.. | ||
attr | ||
buf | ||
commit | ||
config | ||
core | ||
diff | ||
index | ||
network | ||
notes | ||
object | ||
odb | ||
refs | ||
repo | ||
revwalk | ||
status | ||
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.