1. 24 Jun, 2019 3 commits
    • hash: move SHA1 implementations into 'sha1/' folder · fda20622
      As we will include additional hash algorithms in the future due
      to upstream git discussing a move away from SHA1, we should
      accomodate for that and prepare for the move. As a first step,
      move all SHA1 implementations into a common subdirectory.
      
      Also, create a SHA1-specific header file that lives inside the
      hash folder. This header will contain the SHA1-specific header
      includes, function declarations and the SHA1 context structure.
      Patrick Steinhardt committed
    • hash: introduce source files to break include circles · bd48bf3f
      The hash source files have circular include dependencies right
      now, which shows by our broken generic hash implementation. The
      "hash.h" header declares two functions and the `git_hash_ctx`
      typedef before actually including the hash backend header and can
      only declare the remaining hash functions after the include due
      to possibly static function declarations inside of the
      implementation includes.
      
      Let's break this cycle and help maintainability by creating a
      real implementation file for each of the hash implementations.
      Instead of relying on the exact include order, we now especially
      avoid the use of `GIT_INLINE` for function declarations.
      Patrick Steinhardt committed
    • hash: move `git_hash_prov` into Win32 backend · bbf034ab
      The structure `git_hash_prov` is only ever used by the Win32 SHA1
      backend. As such, it doesn't make much sense to expose it via the
      generic "hash.h" header, as it is an implementation detail of the Win32
      backend only. Move the typedef of `git_hash_prov` into
      "hash/sha1/win32.h" to fix this.
      Patrick Steinhardt committed
  2. 23 Jun, 2019 2 commits
  3. 21 Jun, 2019 1 commit
  4. 20 Jun, 2019 2 commits
  5. 17 Jun, 2019 2 commits
  6. 16 Jun, 2019 5 commits
  7. 15 Jun, 2019 17 commits
  8. 14 Jun, 2019 8 commits