1. 06 5月, 2005 20 次提交
  2. 05 5月, 2005 10 次提交
  3. 04 5月, 2005 8 次提交
    • L
      git-pull-script: add a final "diffstat" to show the result of the merge. · 705acc5c
      Linus Torvalds 提交于
      This is useful to verify that you got the right thing.
      705acc5c
    • J
      Optimize diff-cache -p --cached · b46f0b6d
      Junio C Hamano 提交于
      This patch optimizes "diff-cache -p --cached" by avoiding to
      inflate blobs into temporary files when the blob recorded in the
      cache matches the corresponding file in the work tree.  The file
      in the work tree is passed as the comparison source in such a
      case instead.
      
      This optimization kicks in only when we have already read the
      cache this optimization and this is deliberate.  Especially,
      diff-tree does not use this code, because changes are contained
      in small number of files relative to the project size most of
      the time, and reading cache is so expensive for a large project
      that the cost of reading it outweighs the savings by not
      inflating blobs.
      
      Also this patch cleans up the structure passed from diff clients
      by removing one unused structure member.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b46f0b6d
    • J
      Terminate diff-* on non-zero exit from GIT_EXTERNAL_DIFF · 6fa28064
      Junio C Hamano 提交于
      (slightly updated from the version posted to the GIT mailing list
      with small bugfixes).
      
      This patch changes the git-apply-patch-script to exit non-zero when
      the patch cannot be applied.  Previously, the external diff driver
      deliberately ignored the exit status of GIT_EXTERNAL_DIFF command,
      which was a design mistake.  It now stops the processing when
      GIT_EXTERNAL_DIFF exits non-zero, so the damages from running
      git-diff-* with git-apply-patch-script between two wrong trees can be
      contained.
      
      The "diff" command line generated by the built-in driver is changed to
      always exit 0 in order to match this new behaviour.  I know Pasky does
      not use GIT_EXTERNAL_DIFF yet, so this change should not break Cogito,
      either.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6fa28064
    • J
      Git-prune-script loses blobs referenced from an uncommitted cache. · ae7c0c92
      Junio C Hamano 提交于
      (updated from the version posted to GIT mailing list).
      
      When a new blob is registered with update-cache, and before the cache
      is written as a tree and committed, git-fsck-cache will find the blob
      unreachable.  This patch adds a new flag, "--cache" to git-fsck-cache,
      with which it keeps such blobs from considered "unreachable".
      
      The git-prune-script is updated to use this new flag.  At the same time
      it adds .git/refs/*/* to the set of default locations to look for heads,
      which should be consistent with expectations from Cogito users.
      
      Without this fix, "diff-cache -p --cached" after git-prune-script has
      pruned the blob object will fail mysteriously and git-write-tree would
      also fail.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ae7c0c92
    • J
      Short-cut error return path in git-local-pull. · fd0ffd3a
      Junio C Hamano 提交于
      When git-local-pull with -l option gets ENOENT attempting to create
      a hard link, there is no point falling back to other copy methods.
      With this patch, git-local-pull detects such a case and gives up
      copying the file early.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fd0ffd3a
    • J
      Make git-*-pull say who wants them for missing objects. · b2d62f16
      Junio C Hamano 提交于
      This patch updates pull.c, the engine that decides which objects are
      needed, given a commit to traverse from, to report which commit was
      calling for the object that cannot be retrieved from the remote side.
      This complements git-fsck-cache in that it checks the consistency of
      the remote repository for reachability.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b2d62f16
    • L
      sha1_file: make the new sha1 object writing be coda-friendly. · a31c6d02
      Linus Torvalds 提交于
      Coda doesn't like cross-directory hardlinks. So try to fall back
      on a plain rename instead.
      a31c6d02
    • L
      Improve sha1 object file writing. · aac17941
      Linus Torvalds 提交于
      Make it much safer: we write to a temporary file, and then link that
      temporary file to the final destination. This avoids all the nasty
      races if several people write the same object at the same time.
      
      It should also result in nicer on-disk layout, since it means that
      objects all get created in the same subdirectory. That makes a lot
      of block allocation algorithms happier, since the objects will now
      be allocated from the same zone.
      aac17941
  4. 03 5月, 2005 2 次提交