1. 03 7月, 2005 1 次提交
  2. 01 7月, 2005 7 次提交
    • 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
    • L
      Do ref matching on the sender side rather than on receiver · d0efc8a7
      Linus Torvalds 提交于
      This makes the receiver always send a full list of valid refs, which
      will allow us to do better packs, as well as handle creation of new
      refs.  Eventually.  Right now we just moved the matching and enabled it.
      
      So now you can do
      
      	git-send-pack host:path branch1 branch2
      
      to only send branches "branch1" and "branch2".
      d0efc8a7
    • L
      Add support for "forcing" a ref on the remote side · f65fdf04
      Linus Torvalds 提交于
      A "old ref" of all zeroes is considered a "don't care" ref, and allows
      us to say "write the new ref regardless of what the old ref contained
      (or even if it existed at all)".
      
      This allows (if git-send-pack were to do it) creating new refs, and
      fixing up old ones.
      f65fdf04
    • L
      git-send-pack: actually send the object pack · 94fdb7aa
      Linus Torvalds 提交于
      This concludes this lesson.  I've actually successfully sent an update
      using the git-send-pack command.
      
      Probably tons of work still to do, and nasty debugging, but it's now
      actually potentially useful.
      94fdb7aa
    • L
      git-receive-pack: implement ref switch command handling · 2eca23da
      Linus Torvalds 提交于
      After unpacking the object pack successfully, we go through the list of
      refs, and verify that they still contain their expected values.  Then we
      replace them with the new ones.
      2eca23da
  3. 30 6月, 2005 22 次提交
  4. 29 6月, 2005 10 次提交