1. 26 Aug, 2021 1 commit
    • Homogenize semantics for atomic-related functions · 74708a81
      There were some subtle semantic differences between the various
      implementations of atomic functions. Now they behave the same, have
      tests and are better documented to avoid this from happening again in
      the future.
      
      Of note:
      
      * The semantics chosen for `git_atomic_compare_and_swap` match
        `InterlockedCompareExchangePointer`/`__sync_cal_compare_and_swap` now.
      * The semantics chosen for `git_atomic_add` match
        `InterlockedAdd`/`__atomic_add_fetch`.
      * `git_atomic_swap` and `git_atomic_load` still have a bit of semantic
        difference with the gcc builtins / msvc interlocked operations, since
        they require an l-value (not a pointer). If desired, this can be
        homogenized.
      lhchavez committed
  2. 08 Dec, 2020 1 commit
  3. 06 Dec, 2020 2 commits
  4. 11 Oct, 2020 1 commit
  5. 22 Jan, 2019 1 commit
  6. 19 Aug, 2018 1 commit
  7. 05 Aug, 2018 1 commit
  8. 13 Jul, 2018 1 commit
    • treewide: remove use of C++ style comments · 9994cd3f
      C++ style comment ("//") are not specified by the ISO C90 standard and
      thus do not conform to it. While libgit2 aims to conform to C90, we did
      not enforce it until now, which is why quite a lot of these
      non-conforming comments have snuck into our codebase. Do a tree-wide
      conversion of all C++ style comments to the supported C style comments
      to allow us enforcing strict C90 compliance in a later commit.
      Patrick Steinhardt committed
  9. 15 May, 2017 1 commit
  10. 21 Apr, 2017 1 commit
  11. 05 Apr, 2017 1 commit
  12. 03 Apr, 2017 1 commit
  13. 12 Dec, 2016 1 commit
    • refdb: disable concurrent compress in the threading tests on Windows · b31283a6
      This is far from an ideal situation, but this causes issues on Windows which
      make it harder to develop anything, as these tests hit issues which relate
      specifically to the Windows filesystem like permission errors for files we
      should be able to access. There is an issue likely related to the ordering of
      the repack, but there's enough noise that it does not currently help us to run
      this aspect of the test in CI.
      Carlos Martín Nieto committed
  14. 18 Nov, 2016 3 commits
  15. 14 Nov, 2016 5 commits
  16. 20 Jun, 2016 1 commit
  17. 28 Aug, 2015 1 commit
  18. 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
  19. 08 Nov, 2014 1 commit
  20. 07 Nov, 2014 1 commit
    • iterator: submodules are determined by an index or tree · 62a617dc
      We cannot know from looking at .gitmodules whether a directory is a
      submodule or not. We need the index or tree we are comparing against to
      tell us. Otherwise we have to assume the entry in .gitmodules is stale
      or otherwise invalid.
      
      Thus we pass the index of the repository into the workdir iterator, even
      if we do not want to compare against it. This follows what git does,
      which even for `git diff <tree>`, it will consider staged submodules as
      such.
      Carlos Martín Nieto committed
  21. 13 Sep, 2014 1 commit
  22. 05 Aug, 2014 1 commit
  23. 03 Jul, 2014 1 commit
  24. 07 Jun, 2014 1 commit
  25. 08 May, 2014 1 commit
    • Disable threads::refdb::edit_while_iterate test · bb45e390
      It seems that with the various recent changes to reference updating
      and reflog writing, that the thread safety of refdb updates has
      been reduced (either that or it was never thread safe and the
      window for error has increased).  Either way, this test is now
      sometimes segfaulting which is no good, so let's disable the test
      for now.  We don't really make any public promises about thread
      safety for this type of operation, so I think this is acceptable,
      at least in the short term.
      Russell Belfer committed
  26. 17 Apr, 2014 6 commits
  27. 15 Jan, 2014 1 commit
  28. 14 Nov, 2013 1 commit