1. 23 Oct, 2017 2 commits
  2. 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
  3. 08 Jun, 2017 1 commit
    • settings: rename `GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION` · 6c23704d
      Initially, the setting has been solely used to enable the use of
      `fsync()` when creating objects. Since then, the use has been extended
      to also cover references and index files. As the option is not yet part
      of any release, we can still correct this by renaming the option to
      something more sensible, indicating not only correlation to objects.
      
      This commit renames the option to `GIT_OPT_ENABLE_FSYNC_GITDIR`. We also
      move the variable from the object to repository source code.
      Patrick Steinhardt committed
  4. 28 Apr, 2017 1 commit
    • odb: add option to turn off hash verification · 35079f50
      Verifying hashsums of objects we are reading from the ODB may be costly
      as we have to perform an additional hashsum calculation on the object.
      Especially when reading large objects, the penalty can be as high as
      35%, as can be seen when executing the equivalent of `git cat-file` with
      and without verification enabled. To mitigate for this, we add a global
      option for libgit2 which enables the developer to turn off the
      verification, e.g. when he can be reasonably sure that the objects on
      disk won't be corrupted.
      Patrick Steinhardt committed
  5. 25 Apr, 2017 1 commit
  6. 03 Apr, 2017 1 commit
  7. 28 Feb, 2017 2 commits
  8. 10 Feb, 2017 1 commit
  9. 21 Jan, 2017 1 commit
  10. 29 Dec, 2016 1 commit
  11. 17 Dec, 2016 1 commit
    • settings: don't hard-code HTTPS capability · 061a0ad1
      This partially reverts bdec62dc which activates
      the transport code-paths which allow you to use a custom TLS implementation
      without having to have one at build-time.
      
      However the capabilities describe how libgit2 was built, not what it could
      potentially support, bring back the ifdefs so we only say we support HTTPS if
      libgit2 was itself built with a TLS implementation.
      Carlos Martín Nieto committed
  12. 27 Aug, 2016 1 commit
    • Make symbolic ref target validation optional · 452bf57c
      Introduce GIT_OPT_ENABLE_SYMBOLIC_REF_TARGET_VALIDATION option.
      Setting this option to 0 allows
      validation of a symbolic ref's target to be bypassed.
      This option is enabled by default.
      
      This mechanism is added primarily to address a discrepancy between git
      behaviour and libgit2 behaviour, whereby the former allows the symbolic
      ref target to carry an arbitrary string and the latter does not, so:
      
          $ git symbolic-ref refs/heads/foo bar
          $ cat .git/refs/heads/foo
          ref: bar
      
      where as attempting the same via libgit2 raises an error:
      
          The given reference name 'bar' is not valid
      
      this mechanism also allows those that might want to make use of
      git's more lenient treatment of symbolic ref targets to do so.
      Richard Ipsum committed
  13. 06 Jul, 2016 1 commit
  14. 05 Jul, 2016 1 commit
  15. 21 Jun, 2016 1 commit
  16. 14 Mar, 2016 2 commits
  17. 28 Feb, 2016 1 commit
  18. 23 Feb, 2016 1 commit
  19. 17 Nov, 2015 1 commit
  20. 12 Nov, 2015 1 commit
  21. 19 Sep, 2015 1 commit
  22. 23 Apr, 2015 2 commits
  23. 01 Oct, 2014 1 commit
  24. 24 Mar, 2014 1 commit
  25. 03 Mar, 2014 2 commits
  26. 25 Feb, 2014 2 commits
  27. 15 Jan, 2014 1 commit