1. 11 7月, 2005 1 次提交
  2. 09 7月, 2005 2 次提交
  3. 07 7月, 2005 1 次提交
  4. 06 7月, 2005 3 次提交
  5. 04 7月, 2005 3 次提交
  6. 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
  7. 30 6月, 2005 3 次提交
  8. 29 6月, 2005 6 次提交
  9. 28 6月, 2005 5 次提交
  10. 22 6月, 2005 1 次提交
  11. 09 6月, 2005 1 次提交
  12. 07 6月, 2005 1 次提交
  13. 03 6月, 2005 2 次提交
  14. 02 6月, 2005 2 次提交
    • L
      Split up unpack_sha1_file() some more · 5180cacc
      Linus Torvalds 提交于
      Make a separate helper for parsing the header of an object file
      (really carefully) and for unpacking the rest. This means that
      anybody who uses the "unpack_sha1_header()" interface can easily
      look at the header and decide to unpack the rest too, without
      doing any extra work.
      5180cacc
    • L
      Add "unpack_sha1_header()" helper function · c4483576
      Linus Torvalds 提交于
      It's for people who aren't necessarily interested in the whole
      unpacked file, but do want to know the header information (size,
      type, etc..)
      
      For example, the delta code can use this to figure out whether
      an object is already a delta object, and what it is a delta
      against, without actually bothering to unpack all of the actual
      data in the delta.
      c4483576
  15. 26 5月, 2005 1 次提交
  16. 23 5月, 2005 1 次提交
    • L
      Include file cleanups.. · 6b0c3121
      Linus Torvalds 提交于
      Add <limits.h> to the include files handled by "cache.h", and remove
      extraneous #include directives from various .c files. The rule is that
      "cache.h" gets all the basic stuff, so that we'll have as few system
      dependencies as possible.
      6b0c3121
  17. 21 5月, 2005 2 次提交
    • N
      [PATCH] delta read · 91d7b8af
      Nicolas Pitre 提交于
      This makes the core code aware of delta objects and undeltafy them as
      needed.  The convention is to use read_sha1_file() to have
      undeltafication done automatically (most users do that already so this
      is transparent).
      
      If the delta object itself has to be accessed then it must be done
      through map_sha1_file() and unpack_sha1_file().
      
      In that context mktag.c has been switched to read_sha1_file() as there
      is no reason to do the full map+unpack manually.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      91d7b8af
    • L
      sparse cleanup · e99d59ff
      Linus Torvalds 提交于
      Fix various things that sparse complains about:
       - use NULL instead of 0
       - make sure we declare everything properly, or mark it static
       - use proper function declarations ("fn(void)" instead of "fn()")
      
      Sparse is always right.
      e99d59ff
  18. 18 5月, 2005 1 次提交
  19. 10 5月, 2005 1 次提交
    • J
      Introduce GIT_DIR environment variable. · 8ac069ac
      Junio C Hamano 提交于
      During the mailing list discussion on renaming GIT_ environment
      variables, people felt that having one environment that lets the
      user (or Porcelain) specify both SHA1_FILE_DIRECTORY (now
      GIT_OBJECT_DIRECTORY) and GIT_INDEX_FILE for the default layout
      would be handy.  This change introduces GIT_DIR environment
      variable, from which the defaults for GIT_INDEX_FILE and
      GIT_OBJECT_DIRECTORY are derived.  When GIT_DIR is not defined,
      it defaults to ".git".  GIT_INDEX_FILE defaults to
      "$GIT_DIR/index" and GIT_OBJECT_DIRECTORY defaults to
      "$GIT_DIR/objects".
      
      Special thanks for ideas and discussions go to Petr Baudis and
      Daniel Barkalow.  Bugs are mine ;-)
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8ac069ac