1. 25 1月, 2007 4 次提交
  2. 24 1月, 2007 2 次提交
  3. 23 1月, 2007 12 次提交
  4. 22 1月, 2007 7 次提交
    • L
      fsck-objects: refactor checking for connectivity · 18af29f2
      Linus Torvalds 提交于
      This separates the connectivity check into separate codepaths,
      one for reachable objects and the other for unreachable ones,
      while adding a lot of comments to explain what is going on.
      
      When checking an unreachable object, unlike a reachable one, we
      do not have to complain if it does not exist (we used to
      complain about a missing blob even when the only thing that
      references it is a tree that is dangling).  Also we do not have
      to check and complain about objects that are referenced by an
      unreachable object.
      
      This makes the messages from fsck-objects a lot less noisy and
      more useful.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      18af29f2
    • J
      git-gc: do not run git-prune by default. · e3ff4b24
      Junio C Hamano 提交于
      git-prune is not safe when run uncontrolled in parallel while
      other git operations are creating new objects.  To avoid
      mistakes, do not run git-prune by default from git-gc.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e3ff4b24
    • J
      shallow repository: disable unsupported operations for now. · a0022eeb
      Junio C Hamano 提交于
      We currently do not support fetching/cloning from a shallow repository
      nor pushing into one.  Make sure these are not attempted so that we
      do not have to worry about corrupting repositories needlessly.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a0022eeb
    • J
      is_repository_shallow(): prototype fix. · f43117a6
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      f43117a6
    • J
      Make sure git_connect() always give two file descriptors. · ec587fde
      Junio C Hamano 提交于
      Earlier, git_connect() returned the same fd twice or two
      separate fds, depending on the way the connection was made (when
      we are talking to the other end over a single socket, we used
      the same fd twice, and when our end is connected to a pipepair
      we used two).
      
      This forced callers who do close() and dup() to really care
      which was which, and most of the existing callers got this
      wrong, although without much visible ill effect.  Many were
      closing the same fd twice when we are talking over a single
      socket, and one was leaking a fd.
      
      This fixes it to uniformly use two separate fds, so if somebody
      wants to close only reader side can just do close() on it
      without worrying about it accidentally also closing the writer
      side or vice versa.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ec587fde
    • J
      Revert "prune: --grace=time" · 026aa938
      Junio C Hamano 提交于
      This reverts commit 9b088c4e.
      
      Protecting 'mature' objects does not make it any safer.  We should
      admit that git-prune is inherently unsafe when run in parallel with
      other operations without involving unwarranted locking overhead,
      and with the latest git, even rebase and reset would not immediately
      create crufts anyway.
      026aa938
    • J
      Documentation/tutorial-2: Fix interesting typo in an example. · 1bb91460
      Junio C Hamano 提交于
      Marco Candrian noticed that one cat-file example refers to a
      blob object that is never used in the example sequence.
      
      The bug is interesting in that the output from the botched
      sample command is consistent with the incorrect blob object
      name ;-).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1bb91460
  5. 21 1月, 2007 15 次提交