1. 14 Jun, 2019 1 commit
    • Rename opt init functions to `options_init` · 0b5ba0d7
      In libgit2 nomenclature, when we need to verb a direct object, we name
      a function `git_directobject_verb`.  Thus, if we need to init an options
      structure named `git_foo_options`, then the name of the function that
      does that should be `git_foo_options_init`.
      
      The previous names of `git_foo_init_options` is close - it _sounds_ as
      if it's initializing the options of a `foo`, but in fact
      `git_foo_options` is its own noun that should be respected.
      
      Deprecate the old names; they'll now call directly to the new ones.
      Edward Thomson committed
  2. 22 Jan, 2019 1 commit
  3. 10 Jun, 2018 1 commit
  4. 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
  5. 13 Feb, 2017 1 commit
    • repository: use `git_repository_item_path` · c5f3da96
      The recent introduction of the commondir variable of a repository
      requires callers to distinguish whether their files are part of
      the dot-git directory or the common directory shared between
      multpile worktrees. In order to take the burden from callers and
      unify knowledge on which files reside where, the
      `git_repository_item_path` function has been introduced which
      encapsulate this knowledge.
      
      Modify most existing callers of `git_repository_path` to use
      `git_repository_item_path` instead, thus making them implicitly
      aware of the common directory.
      Patrick Steinhardt committed
  6. 21 Jun, 2016 1 commit
  7. 03 Aug, 2015 1 commit
  8. 01 Jun, 2015 1 commit
    • clone: fall back to copying when linking does not work · 10940736
      We use heuristics to make a decent guess at when we can save time and
      space by linking object files during a clone. Unfortunately checking the
      device id isn't enough, as those would be the same during e.g. a bind-mount,
      but the OS still does not allow us to link between mounts of the same
      filesystem.
      
      If we fail to perform the links, fall back to copying the contents into
      a new file as a last attempt.
      Carlos Martín Nieto committed
  9. 13 May, 2015 4 commits
  10. 03 Mar, 2015 3 commits
  11. 30 Sep, 2014 1 commit
  12. 02 Sep, 2014 2 commits
  13. 29 Aug, 2014 1 commit
  14. 05 Aug, 2014 1 commit
  15. 16 Jul, 2014 1 commit
  16. 11 Jul, 2014 1 commit
  17. 02 Jul, 2014 2 commits
  18. 27 Jun, 2014 1 commit
  19. 03 Jun, 2014 1 commit
  20. 28 May, 2014 5 commits
  21. 22 May, 2014 1 commit
  22. 21 May, 2014 2 commits
  23. 20 May, 2014 1 commit
  24. 19 May, 2014 2 commits
  25. 02 May, 2014 1 commit
  26. 26 Mar, 2014 1 commit
  27. 06 Mar, 2014 1 commit