• Show log

    Commit

  • Hash : bd48bf3f
    Author : Patrick Steinhardt
    Date : 2019-06-14T14:21:32

    hash: introduce source files to break include circles
    
    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.