1. 09 12月, 2009 1 次提交
  2. 08 12月, 2009 1 次提交
    • J
      add-interactive: fix deletion of non-empty files · 8947fdd5
      Jeff King 提交于
      Commit 24ab81ae fixed the deletion of empty files, but broke
      deletion of non-empty files. The approach it took was to
      factor out the "deleted" line from the patch header into its
      own hunk, the same way we do for mode changes. However,
      unlike mode changes, we only showed the special "delete this
      file" hunk if there were no other hunks. Otherwise, the user
      would annoyingly be presented with _two_ hunks: one for
      deleting the file and one for deleting the content.
      
      This meant that in the non-empty case, we forgot about the
      deleted line entirely, and we submitted a bogus patch to
      git-apply (with "/dev/null" as the destination file, but not
      marked as a deletion).
      
      Instead, this patch combines the file deletion hunk and the
      content deletion hunk (if there is one) into a single
      deletion hunk which is either staged or not.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8947fdd5
  3. 06 12月, 2009 4 次提交
    • J
      Git 1.6.5.5 · aa031314
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aa031314
    • L
      Fix diff -B/--dirstat miscounting of newly added contents · 77cd6ab6
      Linus Torvalds 提交于
      What used to happen is that diffcore_count_changes() simply ignored any
      hashes in the destination that didn't match hashes in the source. EXCEPT
      if the source hash didn't exist at all, in which case it would count _one_
      destination hash that happened to have the "next" hash value.  As a
      consequence, newly added material was often undercounted, making output
      from --dirstat and "complete rewrite" detection used by -B unrelialble.
      
      This changes it so that:
      
       - whenever it bypasses a destination hash (because it doesn't match a
         source), it counts the bytes associated with that as "literal added"
      
       - at the end (once we have used up all the source hashes), we do the same
         thing with the remaining destination hashes.
      
       - when hashes do match, and we use the difference in counts as a value,
         we also use up that destination hash entry (the 'd++').
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      77cd6ab6
    • J
      reset: improve worktree safety valves · 952dfc69
      Jeff King 提交于
      The existing code checked to make sure we were not in a bare
      repository when doing a hard reset. However, we should take
      this one step further, and make sure we are in a worktree.
      Otherwise, we can end up munging files inside of '.git'.
      
      Furthermore, we should do the same check for --merge resets,
      which have the same properties. Actually, a merge reset of
      HEAD^ would already complain, since further down in the code
      we want a worktree. However, it is nicer to check up-front;
      then we are sure we cover all cases ("git reset --merge"
      would run, even though it wasn't doing anything) and we can
      give a more specific message.
      
      Add tests to t7103 to cover these cases and some missing ones.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      952dfc69
    • T
      Documentation: Avoid use of xmlto --stringparam · 50d9bbba
      Todd Zullinger 提交于
      The --stringparam option is not available on older xmlto versions.
      Instead, set man.base.url.for.relative.links via a .xsl file.  Older
      docbook versions will ignore this without causing grief to users of
      older xmlto versions.
      Signed-off-by: NTodd Zullinger <tmz@pobox.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      50d9bbba
  4. 05 12月, 2009 2 次提交
  5. 04 12月, 2009 22 次提交
  6. 03 12月, 2009 6 次提交
  7. 02 12月, 2009 2 次提交
  8. 01 12月, 2009 1 次提交
  9. 30 11月, 2009 1 次提交