1. 02 12月, 2005 6 次提交
    • J
      git-merge-one-file: do not worry about 'rmdir -p' not removing directory. · ce3ca275
      Junio C Hamano 提交于
      9ae2172a used "rmdir -p"
      carelessly, causing the more important "git-update-index
      --remove" to be skipped.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ce3ca275
    • J
      ls-tree: --name-only · c639a554
      Junio C Hamano 提交于
      Fingers of some "git diff" users are trained to do --name-only
      which git-ls-tree unfortunately does not take.  With this,
      
      	cd sub/directory && git-ls-tree -r --name-only ..
      
      would show only the names not object names nor modes.  I threw
      in another synonym --name-status only for usability, but
      obviously ls-tree does not do any comparison so what it does is
      the same as --name-only.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c639a554
    • J
      ls-tree: resurrect '-d' to mean 'show trees only' · f5984671
      Junio C Hamano 提交于
      With this:
      
      	git-ls-tree -d HEAD -- drivers/net/
      
      shows only immediate subtrees of drivers/net.
      
      	git-ls-tree -d -t HEAD -- drivers/net/
      
      shows drivers, drivers/net and immediate subtrees of
      drivers/net.
      
      	git-ls-tree -d -r HEAD -- drivers/net/
      
      shows drivers, drivers/net and all subtrees of drivers/net (but
      not blobs).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      f5984671
    • L
      git-ls-tree: add "-t" option to always show the tree entries · 0f8f45cb
      Linus Torvalds 提交于
      The old (new) behaviour was that it only shows trees if the object is
      specified exactly, and recursive is not set. That makes sense, because
      there is obviously nothing else it can show for that case.
      
      However, with the new "-t" option, it will show the tree even with "-r",
      as it traverses down into it.
      
      NOTE! This also means that it will show all trees leading up to that tree.
      
      For example, if you do a
      
      	git-ls-tree -t HEAD -- drivers/char/this/file/does/not/exist
      
      it will show the trees that lead up to the files that do not exist:
      
      	[torvalds@g5 linux]$ git-ls-tree -t HEAD -- drivers/char/this/file/does/not/exist
      	040000 tree 9cb687b77dcd64bf82e9a73214db467c964c1266    drivers
      	040000 tree 298e2fadf0ff3867d1ef49936fd2c7bf6ce1eb66    drivers/char
      	[torvalds@g5 linux]$
      
      and note how this is true even though I didn't specify "-r": the fact that
      I supplied a pathspec automatically implies "enough recursion" for that
      particular pathspec.
      
      I think the code is cleaner and easier to understand too: the patch looks
      bigger, but it's really just splitting up the "should we recurse into this
      tree" into a function of its own.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0f8f45cb
    • J
      Makefile: say the default target upfront. · 2731d048
      Junio C Hamano 提交于
      Alex Riesen wants to keep extra makefile targets in config.mak, but
      the file is included before any of our real targets.  Having this
      at the beginning allows you to do so.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2731d048
    • J
      Documentation: describe '-f' option to git-fetch. · a3e3dc46
      Junio C Hamano 提交于
      The option description header was there without body text, confusingly
      getting rendered as if the description for --tags applied to the option.
      
      Noticed by Carl Baldwin.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a3e3dc46
  2. 01 12月, 2005 4 次提交
  3. 30 11月, 2005 18 次提交
  4. 29 11月, 2005 12 次提交