1. 21 May, 2018 2 commits
    • Duy Nguyen's avatar
      commit-slab: support shared commit-slab · 878f0bb8
      Duy Nguyen authored
      define_shared_commit_slab() could be used in a header file to define a
      commit-slab. One of these C files must include commit-slab-impl.h and
      "call" implement_shared_commit_slab().
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      878f0bb8
    • Duy Nguyen's avatar
      commit-slab.h: code split · a9f1f1f9
      Duy Nguyen authored
      The struct declaration and implementation macros are moved to
      commit-slab-hdr.h and commit-slab-impl.h respectively.
      
      This right now is not needed for current users but if we make a public
      commit-slab type, we may want to avoid including the slab
      implementation in a header file which gets replicated in every c file
      that includes it.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      a9f1f1f9