mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-15 14:20:20 +00:00
This updates to implementation of gitattribute macros to be much more similar to core git (albeit not 100%) and to handle expansion of macros within macros, etc. It also cleans up the refcounting usage with macros to be much cleaner. Also, this adds a new vector function `git_vector_insert_sorted()` which allows you to maintain a sorted list as you go. In order to write that function, this changes the function `git__bsearch()` to take a somewhat different set of parameters, although the core functionality is still the same. |
||
|---|---|---|
| .. | ||
| attr | ||
| buf | ||
| config | ||
| core | ||
| index | ||
| network | ||
| object | ||
| odb | ||
| repo | ||
| status | ||
| clay | ||
| clay_helpers.c | ||
| clay_libgit2.h | ||
| clay_main.c | ||
| clay.h | ||
| README.md | ||
Writing Clay tests for libgit2
For information on the Clay testing framework and a detailed introduction please visit:
https://github.com/tanoku/clay
-
Write your modules and tests. Use good, meaningful names.
-
Mix the tests:
./clay -vtap . -
Make sure you actually build the tests by setting:
BUILD_CLAY=ON -
Test:
./build/libgit2_clay -
Make sure everything is fine.
-
Send your pull request. That's it.