1. 03 8月, 2005 1 次提交
  2. 28 7月, 2005 1 次提交
  3. 09 6月, 2005 1 次提交
  4. 30 5月, 2005 1 次提交
    • J
      [PATCH] Rewrite ls-tree to behave more like "/bin/ls -a" · 6af1f019
      Junio C Hamano 提交于
      This is a complete rewrite of ls-tree to make it behave more
      like what "/bin/ls -a" does in the current working directory.
      
      Namely, the changes are:
      
       - Unlike the old ls-tree behaviour that used paths arguments to
         restrict output (not that it worked as intended---as pointed
         out in the mailing list discussion, it was quite incoherent),
         this rewrite uses paths arguments to specify what to show.
      
       - Without arguments, it implicitly uses the root level as its
         sole argument ("/bin/ls -a" behaves as if "." is given
         without argument).
      
       - Without -r (recursive) flag, it shows the named blob (either
         file or symlink), or the named tree and its immediate
         children.
      
       - With -r flag, it shows the named path, and recursively
         descends into it if it is a tree.
      
       - With -d flag, it shows the named path and does not show its
         children even if the path is a tree, nor descends into it
         recursively.
      
      This is still request-for-comments patch.  There is no mailing
      list consensus that this proposed new behaviour is a good one.
      
      The patch to t/t3100-ls-tree-restrict.sh illustrates
      user-visible behaviour changes.  Namely:
      
       * "git-ls-tree $tree path1 path0" lists path1 first and then
         path0.  It used to use paths as an output restrictor and
         showed output in cache entry order (i.e. path0 first and then
         path1) regardless of the order of paths arguments.
      
       * "git-ls-tree $tree path2" lists path2 and its immediate
         children but having explicit paths argument does not imply
         recursive behaviour anymore, hence paths/baz is shown but not
         paths/baz/b.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6af1f019
  5. 07 5月, 2005 1 次提交
    • N
      [PATCH] don't load and decompress objects twice with parse_object() · bd2c39f5
      Nicolas Pitre 提交于
      It turns out that parse_object() is loading and decompressing given
      object to free it just before calling the specific object parsing
      function which does mmap and decompress the same object again. This
      patch introduces the ability to parse specific objects directly from a
      memory buffer.
      
      Without this patch, running git-fsck-cache on the kernel repositorytake:
      
      	real    0m13.006s
      	user    0m11.421s
      	sys     0m1.218s
      
      With this patch applied:
      
      	real    0m8.060s
      	user    0m7.071s
      	sys     0m0.710s
      
      The performance increase is significant, and this is kind of a
      prerequisite for sane delta object support with fsck.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bd2c39f5
  6. 06 5月, 2005 1 次提交
    • L
      Be more careful about tree entry modes. · 42ea9cb2
      Linus Torvalds 提交于
      The tree object parsing used to get the executable bit wrong,
      and didn't know about symlinks. Also, fsck really wants the
      full mode value so that it can verify the other bits for sanity,
      so save it all in struct tree_entry.
      42ea9cb2
  7. 03 5月, 2005 1 次提交
    • L
      Make fsck-cache do better tree checking. · 85003492
      Linus Torvalds 提交于
      We check the ordering of the entries, and we verify that none
      of the entries has a slash in it (this allows us to remove the
      hacky "has_full_path" member from the tree structure, since we
      now just test it by walking the tree entries instead).
      85003492
  8. 24 4月, 2005 1 次提交
  9. 19 4月, 2005 1 次提交