1. 03 11月, 2005 1 次提交
    • J
      Be careful when dereferencing tags. · 9534f40b
      Junio C Hamano 提交于
      One caller of deref_tag() was not careful enough to make sure
      what deref_tag() returned was not NULL (i.e. we found a tag
      object that points at an object we do not have).  Fix it, and
      warn about refs that point at such an incomplete tag where
      needed.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9534f40b
  2. 29 10月, 2005 3 次提交
  3. 26 10月, 2005 1 次提交
  4. 25 10月, 2005 2 次提交
  5. 20 10月, 2005 4 次提交
  6. 19 10月, 2005 2 次提交
    • J
      Do not ask for objects known to be complete. · ea5a65a5
      Junio C Hamano 提交于
      On top of optimization by Linus not to ask refs that already match, we
      can walk our refs and not issue "want" for things that are known to be
      reachable from them.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ea5a65a5
    • L
      git-fetch-pack: avoid unnecessary zero packing · 2759cbc7
      Linus Torvalds 提交于
      If everything is up-to-date locally, we don't need to even ask for a
      pack-file from the remote, or try to unpack it.
      
      This is especially important for tags - since the pack-file common commit
      logic is based purely on the commit history, it will never be able to find
      a common tag, and will thus always end up re-fetching them.
      
      Especially notably, if the tag points to a non-commit (eg a tagged tree),
      the pack-file would be unnecessarily big, just because it cannot any most
      recent common point between commits for pruning.
      
      Short-circuiting the case where we already have that reference means that
      we avoid a lot of these in the common case.
      
      NOTE! This only matches remote ref names against the same local name,
      which works well for tags, but is not as generic as it could be. If we
      ever need to, we could match against _any_ local ref (if we have it, we
      have it), but this "match against same name" is simpler and more
      efficient, and covers the common case.
      
      Renaming of refs is common for branch heads, but since those are always
      commits, the pack-file generation can optimize that case.
      
      In some cases we might still end up fetching pack-files unnecessarily, but
      this at least avoids the re-fetching of tags over and over if you use a
      regular
      
      	git fetch --tags ...
      
      which was the main reason behind the change.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2759cbc7
  7. 16 10月, 2005 1 次提交
  8. 13 8月, 2005 1 次提交
    • J
      fetch-pack: start multi-head pulling. · 33b83034
      Junio C Hamano 提交于
      This is a beginning of resurrecting the multi-head pulling support
      for git-fetch-pack command.  The git-fetch-script wrapper still
      only knows about fetching a single head, without renaming, so it is
      not very useful unless you directly call git-fetch-pack itself yet.
      
      It also fixes a longstanding obsolete description of how the command
      discovers the list of local commits.
      33b83034
  9. 17 7月, 2005 1 次提交
  10. 14 7月, 2005 3 次提交
  11. 06 7月, 2005 3 次提交
  12. 05 7月, 2005 3 次提交