1. 23 5月, 2005 2 次提交
  2. 22 5月, 2005 12 次提交
    • J
      [PATCH] The diff-raw format updates. · 81e50eab
      Junio C Hamano 提交于
      Update the diff-raw format as Linus and I discussed, except that
      it does not use sequence of underscore '_' letters to express
      nonexistence.  All '0' mode is used for that purpose instead.
      
      The new diff-raw format can express rename/copy, and the earlier
      restriction that -M and -C _must_ be used with the patch format
      output is no longer necessary.  The patch makes -M and -C flags
      independent of -p flag, so you need to say git-whatchanged -M -p
      to get the diff/patch format.
      
      Updated are both documentations and tests.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      81e50eab
    • J
      [PATCH] Prepare diffcore interface for diff-tree header supression. · 38c6f780
      Junio C Hamano 提交于
      This does not actually supress the extra headers when pickaxe is
      used, but prepares enough support for diff-tree to implement it.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      38c6f780
    • J
      [PATCH] Tweak diffcore-rename heuristics. · 58b103f5
      Junio C Hamano 提交于
      The heuristics so far was to compare file size change and xdelta
      size against the average of file size before and after the
      change.  This patch uses the smaller of pre- and post- change
      file size instead.
      
      It also makes a very small performance fix.  I didn't measure
      it; I do not expect it to make any practical difference, but
      while scanning an already sorted list, breaking out in the
      middle is the right thing.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      58b103f5
    • L
      diff-tree: don't print multiple headers for merges when silent. · d6db0107
      Linus Torvalds 提交于
      Normally we show every facet of a merge, but when we're silent,
      there's little point.
      d6db0107
    • J
      [PATCH] Constness fix for pickaxe option. · 057c7d30
      Junio C Hamano 提交于
      Constness fix for pickaxe option.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      057c7d30
    • L
      diff-tree: prettify output slightly · 3258c902
      Linus Torvalds 提交于
      Make the commit explanation buffer larger, and make sure that if
      we truncate it, we put a "..." marker there to visually tell people
      about the truncation (tested with a much smaller buffer to make
      sure it looks sane).
      
      Also make sure that the explanation is properly line-terminated,
      and add an extra newline iff we have a diff.
      3258c902
    • L
      t/t4003-diff-rename-1: use modern options to "diff" · da196b60
      Linus Torvalds 提交于
      Don't do "-u0", use "--unified=0" which is accepted by modern GNU
      diff versions.
      da196b60
    • L
      "make clean" should also clean up documentation · cebf03c4
      Linus Torvalds 提交于
      (Or, if somebody disagrees, we should have a "make distclean").
      cebf03c4
    • J
      [PATCH] Diff overhaul, adding the other half of copy detection. · c3e7fbcb
      Junio C Hamano 提交于
      This patch extends diff-cache and diff-files to report the
      unmodified files to diff-core as well when -C (copy detection)
      is in effect, so that the unmodified files can also be used as
      the source candidates.  The existing test t4003 has been
      extended to cover this case.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c3e7fbcb
    • J
      [PATCH] Introducing software archaeologist's tool "pickaxe". · 52e95789
      Junio C Hamano 提交于
      This steals the "pickaxe" feature from JIT and make it available
      to the bare Plumbing layer.  From the command line, the user
      gives a string he is intersted in.
      
      Using the diff-core infrastructure previously introduced, it
      filters the differences to limit the output only to the diffs
      between <src> and <dst> where the string appears only in one but
      not in the other.  For example:
      
       $ ./git-rev-list HEAD | ./git-diff-tree -Sdiff-tree-helper --stdin -M
      
      would show the diffs that touch the string "diff-tree-helper".
      
      In real software-archaeologist application, you would typically
      look for a few to several lines of code and see where that code
      came from.
      
      The "pickaxe" module runs after "rename/copy detection" module,
      so it even crosses the file rename boundary, as the above
      example demonstrates.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      52e95789
    • J
      [PATCH] Diff overhaul, adding half of copy detection. · 427dcb4b
      Junio C Hamano 提交于
      This introduces the diff-core, the layer between the diff-tree
      family and the external diff interface engine.  The calls to the
      interface diff-tree family uses (diff_change and diff_addremove)
      have not changed and will not change.  The purpose of the
      diff-core layer is to provide an infrastructure to transform the
      set of differences sent from the applications, before sending
      them to the external diff interface.
      
      The recently introduced rename detection code has been rewritten
      to use the diff-core facility.  When applications send in
      separate creates and deletes, matching ones are transformed into
      a single rename-and-edit diff, and sent out to the external diff
      interface as such.
      
      This patch also enhances the rename detection code further to be
      able to detect copies.  Currently this happens only as long as
      copy sources appear as part of the modified files, but there
      already is enough provision for callers to report unmodified
      files to diff-core, so that they can be also used as copy source
      candidates.  Extending the callers this way will be done in a
      separate patch.
      
      Please see and marvel at how well this works by trying out the
      newly added t/t4003-diff-rename-1.sh test script.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      427dcb4b
    • L
      git-whatchanged: allow other pagers · c8265ac0
      Linus Torvalds 提交于
      (but still try to use '-S' if using less)
      c8265ac0
  3. 21 5月, 2005 10 次提交
  4. 20 5月, 2005 12 次提交
  5. 19 5月, 2005 4 次提交