1. 27 Nov, 2020 1 commit
  2. 11 Oct, 2020 1 commit
    • global: separate global state from thread-local state · 4853d94c
      Our "global initialization" has accumulated some debris over the years.
      It was previously responsible for both running the various global
      initializers (that set up various subsystems) _and_ setting up the
      "global state", which is actually the thread-local state for things
      like error reporting.
      
      Separate the thread local state out into "threadstate".  Use the normal
      subsystem initialization functions that we already have to set it up.
      This makes both the global initialization system and the threadstate
      system simpler to reason about.
      Edward Thomson committed
  3. 09 Jun, 2020 1 commit
    • tree-wide: do not compile deprecated functions with hard deprecation · c6184f0c
      When compiling libgit2 with -DDEPRECATE_HARD, we add a preprocessor
      definition `GIT_DEPRECATE_HARD` which causes the "git2/deprecated.h"
      header to be empty. As a result, no function declarations are made
      available to callers, but the implementations are still available to
      link against. This has the problem that function declarations also
      aren't visible to the implementations, meaning that the symbol's
      visibility will not be set up correctly. As a result, the resulting
      library may not expose those deprecated symbols at all on some platforms
      and thus cause linking errors.
      
      Fix the issue by conditionally compiling deprecated functions, only.
      While it becomes impossible to link against such a library in case one
      uses deprecated functions, distributors of libgit2 aren't expected to
      pass -DDEPRECATE_HARD anyway. Instead, users of libgit2 should manually
      define GIT_DEPRECATE_HARD to hide deprecated functions. Using "real"
      hard deprecation still makes sense in the context of CI to test we don't
      use deprecated symbols ourselves and in case a dependant uses libgit2 in
      a vendored way and knows it won't ever use any of the deprecated symbols
      anyway.
      Patrick Steinhardt committed
  4. 24 Jan, 2020 1 commit
  5. 15 Jun, 2019 1 commit
  6. 22 Jan, 2019 1 commit
  7. 03 Jul, 2017 1 commit
    • Make sure to always include "common.h" first · 0c7f49dd
      Next to including several files, our "common.h" header also declares
      various macros which are then used throughout the project. As such, we
      have to make sure to always include this file first in all
      implementation files. Otherwise, we might encounter problems or even
      silent behavioural differences due to macros or defines not being
      defined as they should be. So in fact, our header and implementation
      files should make sure to always include "common.h" first.
      
      This commit does so by establishing a common include pattern. Header
      files inside of "src" will now always include "common.h" as its first
      other file, separated by a newline from all the other includes to make
      it stand out as special. There are two cases for the implementation
      files. If they do have a matching header file, they will always include
      this one first, leading to "common.h" being transitively included as
      first file. If they do not have a matching header file, they instead
      include "common.h" as first file themselves.
      
      This fixes the outlined problems and will become our standard practice
      for header and source files inside of the "src/" from now on.
      Patrick Steinhardt committed
  8. 29 Dec, 2016 1 commit
  9. 13 Feb, 2015 2 commits
  10. 27 Oct, 2014 1 commit
  11. 18 Aug, 2014 1 commit
  12. 07 Mar, 2014 1 commit
  13. 20 Feb, 2014 1 commit
  14. 13 Jan, 2014 1 commit
  15. 19 Sep, 2013 1 commit
  16. 31 Aug, 2013 1 commit
  17. 22 May, 2013 1 commit
  18. 17 May, 2013 1 commit
  19. 29 Apr, 2013 4 commits
  20. 25 Mar, 2013 1 commit
  21. 21 Mar, 2013 2 commits
  22. 08 Jan, 2013 1 commit
  23. 04 Jan, 2013 2 commits
  24. 23 Nov, 2012 1 commit
  25. 25 Aug, 2012 1 commit
  26. 29 Jul, 2012 1 commit
  27. 24 Jul, 2012 1 commit
  28. 17 Apr, 2012 1 commit
  29. 02 Apr, 2012 1 commit
  30. 19 Mar, 2012 1 commit
    • Migrate index, oid, and utils to new errors · 7c7ff7d1
      This includes a few cleanups that came up while converting
      these files.
      
      This commit introduces a could new git error classes, including
      the catchall class: GITERR_INVALID which I'm using as the class
      for invalid and out of range values which are detected at too low
      a level of library to use a higher level classification.  For
      example, an overflow error in parsing an integer or a bad letter
      in parsing an OID string would generate an error in this class.
      Russell Belfer committed
  31. 06 Mar, 2012 1 commit
  32. 02 Mar, 2012 1 commit
    • Update diff to use iterators · 74fa4bfa
      This is a major reorganization of the diff code.  This changes
      the diff functions to use the iterators for traversing the
      content.  This allowed a lot of code to be simplified.  Also,
      this moved the functions relating to outputting a diff into a
      new file (diff_output.c).
      
      This includes a number of other changes - adding utility
      functions, extending iterators, etc. plus more tests for the
      diff code.  This also takes the example diff.c program much
      further in terms of emulating git-diff command line options.
      Russell Belfer committed
  33. 13 Feb, 2012 1 commit
  34. 28 Dec, 2011 1 commit