1. 15 8月, 2005 1 次提交
    • J
      Alternate object pool mechanism updates. · d5a63b99
      Junio C Hamano 提交于
      It was a mistake to use GIT_ALTERNATE_OBJECT_DIRECTORIES
      environment variable to specify what alternate object pools to
      look for missing objects when working with an object database.
      It is not a property of the process running the git commands,
      but a property of the object database that is partial and needs
      other object pools to complete the set of objects it lacks.
      
      This patch allows you to have $GIT_OBJECT_DIRECTORY/info/alternates
      whose contents is in exactly the same format as the environment
      variable, to let an object database name alternate object pools
      it depends on.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d5a63b99
  2. 10 8月, 2005 1 次提交
  3. 09 8月, 2005 2 次提交
  4. 05 8月, 2005 1 次提交
    • J
      Update get_sha1() to grok extended format. · 9938af6a
      Junio C Hamano 提交于
      Everybody envies rev-parse, who is the only one that can grok
      the extended sha1 format.  Move the get_extended_sha1() out of
      rev-parse, rename it to get_sha1() and make it available to
      everybody else.
      
      The one I posted earlier to the list had one bug where it did
      not handle a name that ends with a digit correctly (it
      incorrectly tried the "Nth parent" path).  This commit fixes it.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9938af6a
  5. 03 8月, 2005 1 次提交
    • B
      [PATCH] Parallelize pulling by ssh · 70b9829e
      barkalow@iabervon.org 提交于
      This causes ssh-pull to request objects in prefetch() and read then in
      fetch(), such that it reduces the unpipelined round-trip time.
      
      This also makes sha1_write_from_fd() support having a buffer of data
      which it accidentally read from the fd after the object; this was
      formerly not a problem, because it would always get a short read at
      the end of an object, because the next object had not been
      requested. This is no longer true.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      70b9829e
  6. 01 8月, 2005 2 次提交
  7. 30 7月, 2005 1 次提交
    • P
      [PATCH] mmap error handling · e35f9824
      Pavel Roskin 提交于
      I have reviewed all occurrences of mmap() in git and fixed three types
      of errors/defects:
      
      1) The result is not checked.
      2) The file descriptor is closed if mmap() succeeds, but not when it
      fails.
      3) Various casts applied to -1 are used instead of MAP_FAILED, which is
      specifically defined to check mmap() return value.
      
      [jc: This is a second round of Pavel's patch.  He fixed up the problem
      that close() potentially clobbering the errno from mmap, which
      the first round had.]
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e35f9824
  8. 12 7月, 2005 1 次提交
    • J
      [PATCH] Check packs and then files. · ab90ea5d
      Junio C Hamano 提交于
      This reverses the order of object lookup, to check pack index first and
      then go to the filesystem to find .git/objects/??/ hierarchy.
      
      When most of the objects are packed, this saves quite many stat() calls
      and negative dcache entries; while the price this approach has to pay is
      negligible, even when most of the objects are outside pack, because
      checking pack index file is quite cheap.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ab90ea5d
  9. 11 7月, 2005 3 次提交
  10. 09 7月, 2005 2 次提交
  11. 07 7月, 2005 1 次提交
  12. 06 7月, 2005 3 次提交
  13. 04 7月, 2005 3 次提交
  14. 01 7月, 2005 3 次提交
    • J
      [PATCH] Show more details of packfile with verify-pack -v. · ad8c80a5
      Junio C Hamano 提交于
      This implements show_pack_info() function used in verify-pack
      command when -v flag is used to obtain something like
      unpack-objects used to give when it was first written.
      
      It shows the following for each non-deltified object found in
      the pack:
      
          SHA1 type size offset
      
      For deltified objects, it shows this instead:
      
          SHA1 type size offset depth base_sha1
      
      In order to get the output in the order that appear in the pack
      file for debugging purposes, you can do this:
      
       $ git-verify-pack -v packfile | sort -n -k 4,4
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ad8c80a5
    • J
      [PATCH] verify-pack updates. · f3bf9224
      Junio C Hamano 提交于
      Nico pointed out that having verify_pack.c and verify-pack.c was
      confusing.  Rename verify_pack.c to pack-check.c as suggested,
      and enhances the verification done quite a bit.
      
       - Built-in sha1_file unpacking knows that a base object of a
         deltified object _must_ be in the same pack, and takes
         advantage of that fact.
      
       - Earlier verify-pack command only checked the SHA1 sum for the
         entire pack file and did not look into its contents.  It now
         checks everything idx file claims to have unpacks correctly.
      
       - It now has a hook to give more detailed information for
         objects contained in the pack under -v flag.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f3bf9224
    • J
      [PATCH] Avoid unnecessarily inflating and interpreting delta · c62266f3
      Junio C Hamano 提交于
      This teaches packed_delta_info() that it only needs to look at
      the type of the base object to figure out both type and size of
      a deltified object.  This saves quite a many calls to inflate()
      when dealing with a deep delta chain.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c62266f3
  15. 30 6月, 2005 3 次提交
  16. 29 6月, 2005 6 次提交
  17. 28 6月, 2005 5 次提交
  18. 22 6月, 2005 1 次提交