1. 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
  2. 28 Mar, 2017 3 commits
  3. 17 Feb, 2017 2 commits
  4. 29 Dec, 2016 1 commit
  5. 12 Dec, 2016 1 commit
    • write_tree: use shared buffer for writing trees · 87aaefe2
      The function to write trees allocates a new buffer for each tree.
      This causes problems with performance when performing a lot
      of actions involving writing trees, e.g. when doing many merges.
      Fix the issue by instead handing in a shared buffer, which is then
      re-used across the calls without having to re-allocate between
      calls.
      Michael Tesch committed
  6. 14 Nov, 2016 3 commits
  7. 07 Oct, 2016 1 commit
  8. 24 May, 2016 1 commit
  9. 19 May, 2016 2 commits
  10. 18 May, 2016 1 commit
  11. 17 May, 2016 1 commit
    • Introduce a function to create a tree based on a different one · 9464f9eb
      Instead of going through the usual steps of reading a tree recursively
      into an index, modifying it and writing it back out as a tree, introduce
      a function to perform simple updates more efficiently.
      
      `git_tree_create_updated` avoids reading trees which are not modified
      and supports upsert and delete operations. It is not as versatile as
      modifying the index, but it makes some common operations much more
      efficient.
      Carlos Martín Nieto committed
  12. 31 Mar, 2016 1 commit
  13. 22 Mar, 2016 1 commit
  14. 20 Mar, 2016 2 commits
  15. 04 Mar, 2016 1 commit
  16. 28 Feb, 2016 1 commit
  17. 16 Feb, 2016 1 commit
  18. 06 Dec, 2015 1 commit
  19. 02 Dec, 2015 1 commit
  20. 01 Dec, 2015 1 commit
    • tree: mark cloned tree entries as un-pooled · 9487585d
      When duplicating a `struct git_tree_entry` with
      `git_tree_entry_dup` the resulting structure is not allocated
      inside a memory pool. As we do a 1:1 copy of the original struct,
      though, we also copy the `pooled` field, which is set to `true`
      for pooled entries. This results in a huge memory leak as we
      never free tree entries that were duplicated from a pooled
      tree entry.
      
      Fix this by marking the newly duplicated entry as un-pooled.
      Patrick Steinhardt committed
  21. 30 Nov, 2015 1 commit
  22. 28 Nov, 2015 4 commits
  23. 17 Mar, 2015 1 commit
  24. 15 Feb, 2015 1 commit
  25. 13 Feb, 2015 3 commits
  26. 27 Dec, 2014 1 commit
  27. 17 Dec, 2014 1 commit
  28. 16 Dec, 2014 1 commit