1. 29 11月, 2005 1 次提交
  2. 18 10月, 2005 1 次提交
  3. 08 10月, 2005 1 次提交
  4. 30 7月, 2005 1 次提交
  5. 04 7月, 2005 1 次提交
    • L
      Fix sparse warnings. · 6da4016a
      Linus Torvalds 提交于
      Mainly making a lot of local functions and variables be marked "static",
      but there was a "zero as NULL" warning in there too.
      6da4016a
  6. 01 6月, 2005 1 次提交
  7. 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
  8. 27 5月, 2005 2 次提交
  9. 21 5月, 2005 1 次提交
    • 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
  10. 20 5月, 2005 1 次提交
  11. 18 5月, 2005 1 次提交
  12. 12 5月, 2005 1 次提交
    • I
      [patch] git: cleanup in ls-tree.c · c599caca
      Ingo Molnar 提交于
      cleanup: this patch adds a free() to ls-tree.c.
      
      (Technically it's not a memory leak yet because the buffer is allocated
      once by the function and then the utility exits - but it's a tad cleaner
      to not leave such assumptions in the code, so that if someone reuses the
      function (or extends the utility to include a loop) the uncleanliness
      doesnt develop into a real memory leak.)
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      
      Forward-ported.
      Signed-off-by: NPetr Baudis <pasky@ucw.cz>
      c599caca
  13. 07 5月, 2005 1 次提交
  14. 02 5月, 2005 1 次提交
    • L
      Add "get_sha1()" helper function. · 3c249c95
      Linus Torvalds 提交于
      This allows the programs to use various simplified versions of
      the SHA1 names, eg just say "HEAD" for the SHA1 pointed to by
      the .git/HEAD file etc.
      
      For example, this commit has been done with
      
      	git-commit-tree $(git-write-tree) -p HEAD
      
      instead of the traditional "$(cat .git/HEAD)" syntax.
      3c249c95
  15. 29 4月, 2005 1 次提交
  16. 21 4月, 2005 1 次提交
  17. 17 4月, 2005 1 次提交
    • J
      [PATCH] Un unoptimize ls-tree behaviour · 0f2303f7
      Junio C Hamano 提交于
      ls-tree unconditionally called read_sha1_file() for all paths
      even when not needed, which was a mistake introduced by me.
      Rectify this by first checking S_ISDIR(mode) and read the tree
      contents only when it is a tree and we are recursive.  There is
      no need to read it in any other cases.
      
      The patch also removes the confusing comment that led to this
      incorrect implementation.
      
      Thanks to Peter Baudis for noticing this problem.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0f2303f7
  18. 15 4月, 2005 1 次提交
    • J
      [PATCH] ls-tree enhancements · aa1c48df
      Junio C Hamano 提交于
      This adds '-r' (recursive) option and '-z' (NUL terminated)
      option to ls-tree.  I need it so that the merge-trees (formerly
      known as git-merge.perl) script does not need to create any
      temporary dircache while merging.  It used to use show-files on
      a temporary dircache to get the list of files in the ancestor
      tree, and also used the dircache to store the result of its
      automerge.  I probably still need it for the latter reason, but
      with this patch not for the former reason anymore.
      
      It is relative to bb95843a5a0f397270819462812735ee29796fb4
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      aa1c48df
  19. 13 4月, 2005 2 次提交