1. 14 Jul, 2022 1 commit
  2. 20 Jun, 2022 1 commit
  3. 23 Feb, 2022 1 commit
  4. 18 May, 2021 1 commit
  5. 16 May, 2021 1 commit
  6. 20 Apr, 2021 1 commit
    • git_reference_create_matching: Treat all-zero OID as "must be absent" · 95b7a639
      This is pretty useful in avoiding races: I want to create a ref only if
      it doesn't already exist.  I can't check first because of TOCTOU -- by
      the time I finish the check, someone else might have already created
      the ref.  And I can't take a lock because then I can't do the create,
      since the create expects to take the lock.
      
      The semantics are inspired by git update-ref, which allows an all-zero old
      value to mean that the ref must not exist.
      David Turner committed
  7. 15 Jan, 2020 1 commit
    • refs: refuse to delete HEAD · 852c83ee
      This requires adding a new symbolic ref to the testrepo fixture.
      Some of the existing tests attempt to delete HEAD, expecting a different failure. Introduce and use a non-HEAD symbolic ref instead.
      Adjust a few other tests as needed.
      
      Fixes #5357
      Josh Bleecher Snyder committed
  8. 03 Mar, 2015 1 commit
    • Remove the signature from ref-modifying functions · 659cf202
      The signature for the reflog is not something which changes
      dynamically. Almost all uses will be NULL, since we want for the
      repository's default identity to be used, making it noise.
      
      In order to allow for changing the identity, we instead provide
      git_repository_set_ident() and git_repository_ident() which allow a user
      to override the choice of signature.
      Carlos Martín Nieto committed
  9. 10 Feb, 2014 1 commit
  10. 05 Feb, 2014 4 commits