• Show log

    Commit

  • Hash : a8db6c92
    Author : Edward Thomson
    Date : 2017-11-30T15:40:13

    util: introduce `git__prefixncmp` and consolidate implementations
    
    Introduce `git_prefixncmp` that will search up to the first `n`
    characters of a string to see if it is prefixed by another string.
    This is useful for examining if a non-null terminated character
    array is prefixed by a particular substring.
    
    Consolidate the various implementations of `git__prefixcmp` around a
    single core implementation and add some test cases to validate its
    behavior.
    
    (cherry picked from commit 86219f40689c85ec4418575223f4376beffa45af)
    

  • README.md

  • Writing Clar tests for libgit2

    For information on the Clar testing framework and a detailed introduction please visit:

    https://github.com/vmg/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.