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. 29 Dec, 2016 1 commit
  3. 22 Oct, 2014 1 commit
    • tree-cache: correct the entry_count calculation · bb0757d5
      The entry_count field is the amount of index entries covered by a
      particular cache entry, that is how many files are there (recursively)
      under a particular directory.
      
      The current code that attemps to do this is severely defincient and is
      trying to count the amount of children, which always comes up to zero.
      
      We don't even need to recount, since we have the information during the
      cache creation. We can take that number and keep it, as we only ever
      invalidate or replace.
      Carlos Martín Nieto committed
  4. 13 Oct, 2014 1 commit
  5. 10 Oct, 2014 6 commits
  6. 17 Apr, 2014 1 commit
    • Minor tree cache speedups · 1fa17b5c
      While I was looking at the conflict cleanup code, I looked over at
      the tree cache code, since we clear the tree cache for each entry
      that gets removed and there is some redundancy there.  I made some
      small tweaks to avoid extra calls to strchr and strlen in a few
      circumstances.
      Russell Belfer committed
  7. 19 Nov, 2013 4 commits
  8. 08 Jan, 2013 1 commit
  9. 12 Dec, 2012 1 commit
    • tree cache: loosen negative entry count check · 08f3d6ca
      While C Git has been writing entry count -1 (ie. never other negative
      numbers) as invalid since day 1, it accepts all negative entry counts
      as invalid. JGit follows the same rule. libgit2 should also follow, or
      the index that works with C Git or JGit may someday be rejected by
      libgit2.
      
      Other reimplementations like dulwich and grit have not bothered with
      parsing or writing tree cache.
      Nguyễn Thái Ngọc Duy committed
  10. 07 Jun, 2012 1 commit
  11. 03 May, 2012 1 commit
  12. 23 Apr, 2012 1 commit
  13. 20 Apr, 2012 1 commit
  14. 13 Feb, 2012 1 commit
  15. 29 Oct, 2011 1 commit
  16. 27 Sep, 2011 5 commits