1. 05 Jan, 2009 1 commit
  2. 13 Jul, 2008 1 commit
    • Stephan Beyer's avatar
      Make usage strings dash-less · 1b1dd23f
      Stephan Beyer authored
      When you misuse a git command, you are shown the usage string.
      But this is currently shown in the dashed form.  So if you just
      copy what you see, it will not work, when the dashed form
      is no longer supported.
      
      This patch makes git commands show the dash-less version.
      
      For shell scripts that do not specify OPTIONS_SPEC, git-sh-setup.sh
      generates a dash-less usage string now.
      Signed-off-by: default avatarStephan Beyer <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      1b1dd23f
  3. 07 Jun, 2007 1 commit
    • Junio C Hamano's avatar
      War on whitespace · a6080a0a
      Junio C Hamano authored
      This uses "git-apply --whitespace=strip" to fix whitespace errors that have
      crept in to our source files over time.  There are a few files that need
      to have trailing whitespaces (most notably, test vectors).  The results
      still passes the test, and build result in Documentation/ area is unchanged.
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      a6080a0a
  4. 30 May, 2007 1 commit
  5. 27 May, 2007 1 commit
    • Shawn O. Pearce's avatar
      Lazily open pack index files on demand · d079837e
      Shawn O. Pearce authored
      In some repository configurations the user may have many packfiles,
      but all of the recent commits/trees/tags/blobs are likely to
      be in the most recent packfile (the one with the newest mtime).
      It is therefore common to be able to complete an entire operation
      by accessing only one packfile, even if there are 25 packfiles
      available to the repository.
      
      Rather than opening and mmaping the corresponding .idx file for
      every pack found, we now only open and map the .idx when we suspect
      there might be an object of interest in there.
      
      Of course we cannot known in advance which packfile contains an
      object, so we still need to scan the entire packed_git list to
      locate anything.  But odds are users want to access objects in the
      most recently created packfiles first, and that may be all they
      ever need for the current operation.
      
      Junio observed in b867092f that placing recent packfiles before
      older ones can slightly improve access times for recent objects,
      without degrading it for historical object access.
      
      This change improves upon Junio's observations by trying even harder
      to avoid the .idx files that we won't need.
      Signed-off-by: default avatarShawn O. Pearce <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      d079837e
  6. 10 Apr, 2007 1 commit
  7. 17 Mar, 2007 1 commit
    • Nicolas Pitre's avatar
      [PATCH] clean up pack index handling a bit · 42873078
      Nicolas Pitre authored
      Especially with the new index format to come, it is more appropriate
      to encapsulate more into check_packed_git_idx() and assume less of the
      index format in struct packed_git.
      
      To that effect, the index_base is renamed to index_data with void * type
      so it is not used directly but other pointers initialized with it. This
      allows for a couple pointer cast removal, as well as providing a better
      generic name to grep for when adding support for new index versions or
      formats.
      
      And index_data is declared const too while at it.
      Signed-off-by: default avatarNicolas Pitre <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      42873078
  8. 07 Mar, 2007 1 commit
    • Shawn O. Pearce's avatar
      Use off_t when we really mean a file offset. · c4001d92
      Shawn O. Pearce authored
      Not all platforms have declared 'unsigned long' to be a 64 bit value,
      but we want to support a 64 bit packfile (or close enough anyway)
      in the near future as some projects are getting large enough that
      their packed size exceeds 4 GiB.
      
      By using off_t, the POSIX type that is declared to mean an offset
      within a file, we support whatever maximum file size the underlying
      operating system will handle.  For most modern systems this is up
      around 2^60 or higher.
      Signed-off-by: default avatarShawn O. Pearce <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      c4001d92
  9. 17 Aug, 2006 1 commit
  10. 16 Aug, 2006 1 commit
  11. 20 Jun, 2006 1 commit
  12. 26 Feb, 2006 1 commit
  13. 22 Dec, 2005 1 commit
  14. 29 Nov, 2005 1 commit
  15. 24 Nov, 2005 1 commit
    • Junio C Hamano's avatar
      pack-redundant: type cleanups. · b99a394c
      Junio C Hamano authored
      Binary representation of object names are unsigned char[20], not
      signed.  Also verbose output had %lu format printing size_t
      without (unsigned long) cast other places already had, so match
      that.  Using format %zu was suggested but might not be supported
      as widely.
      
      Noted by Morten Welinder, fixed with input from H. Peter Anvin
      and Hideaki Yoshifuji.
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      b99a394c
  16. 22 Nov, 2005 4 commits
  17. 21 Nov, 2005 1 commit
  18. 18 Nov, 2005 4 commits
  19. 17 Nov, 2005 1 commit
  20. 16 Nov, 2005 1 commit
  21. 13 Nov, 2005 1 commit
  22. 12 Nov, 2005 3 commits