• Show log

    Commit

  • Hash : 8264a30f
    Author : Patrick Steinhardt
    Date : 2017-05-02T10:11:28

    worktree: support creating locked worktrees
    
    When creating a new worktree, we do have a potential race with us
    creating the worktree and another process trying to delete the same
    worktree as it is being created. As such, the upstream git project has
    introduced a flag `git worktree add --locked`, which will cause the
    newly created worktree to be locked immediately after its creation. This
    mitigates the race condition.
    
    We want to be able to mirror the same behavior. As such, a new flag
    `locked` is added to the options structure of `git_worktree_add` which
    allows the user to enable this behavior.
    

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