1. 15 1月, 2007 4 次提交
    • S
      Remove unnecessary duplicate_count in fast-import. · 80144727
      Shawn O. Pearce 提交于
      There is little reason to be keeping a global duplicate_count
      value when we also keep it per object type.  The global counter can
      easily be computed at the end, once all processing has completed.
      This saves us a couple of machine instructions in an unimportant
      part of code.  But it looks slightly better to me to not keep
      two counters around.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      80144727
    • S
      Restructure fast-import to support creating multiple packfiles. · f70b6534
      Shawn O. Pearce 提交于
      Now that we are starting to see some really large projects (such
      as KDE or a fork of FreeBSD) get imported into Git we're running
      into the upper limit on packfile object count as well as overall
      byte length.  The KDE and FreeBSD projects are both likely to
      require more than 4 GiB to store their current history, which means
      we really need multiple packfiles to handle their content.
      
      This is a fairly simple restructuring of the internal code to help
      us support creating multiple packfiles from within fast-import.
      We are now adding a 5 digit incrementing suffix to the end of the
      basename supplied to us by the caller, permitting up to 99,999
      packs to be generated in a single fast-import run.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      f70b6534
    • S
      Misc. type cleanups within fast-import. · 03842d8e
      Shawn O. Pearce 提交于
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      03842d8e
    • S
      Improve reuse of sha1_file library within fast-import. · d489bc14
      Shawn O. Pearce 提交于
      Now that the sha1_file.c library routines use the sliding mmap
      routines to perform efficient access to portions of a packfile
      I can remove that code from fast-import.c and just invoke it.
      One benefit is we now have reloading support for any packfile which
      uses OBJ_OFS_DELTA.  Another is we have significantly less code
      to maintain.
      
      This code reuse change *requires* that fast-import generate only
      an OBJ_OFS_DELTA format packfile, as there is absolutely no index
      available to perform OBJ_REF_DELTA lookup in while unpacking
      an object.  This is probably reasonable to require as the delta
      offsets result in smaller packfiles and are faster to unpack,
      as no index searching is required.  Its also only a temporary
      requirement as users could always repack without offsets before
      making the import available to older versions of Git.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      d489bc14
  2. 14 1月, 2007 36 次提交