• Show log

    Commit

  • Hash : 039fc406
    Author : Russell Belfer
    Date : 2012-07-10T15:10:14

    Add a couple of useful git_buf utilities
    
    * `git_buf_rfind` (with tests and tests for `git_buf_rfind_next`)
    * `git_buf_puts_escaped` and `git_buf_puts_escaped_regex` (with tests)
      to copy strings into a buffer while injecting an escape sequence
      (e.g. '\') in front of particular characters.
    

  • 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.