1. 14 10月, 2006 1 次提交
  2. 06 10月, 2006 1 次提交
    • J
      Turn on recursive with --summary · d7014dc0
      Johannes Schindelin 提交于
      This makes "git log/diff --summary" imply recursive behaviour,
      whose effect is summarized in one test output:
      
          --- a/t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
          +++ b/t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
          @@ -5,7 +5,7 @@ Date:   Mon Jun 26 00:00:00 2006 +0000
      
      	 Initial
      
          - create mode 040000 dir
          + create mode 100644 dir/sub
            create mode 100644 file0
            create mode 100644 file2
           $
      
      When a file is created in a subdirectory, we used to say just
      the directory name only when that directory also was created,
      which did not make sense from two reasons.  It is not any more
      significant to create a new file in a new directory than to
      create a new file in an existing directory, and even if it were,
      reportinging the new directory name without saying the actual
      filename is not useful.
      Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d7014dc0
  3. 30 9月, 2006 1 次提交
  4. 29 9月, 2006 3 次提交
  5. 27 9月, 2006 2 次提交
  6. 24 9月, 2006 1 次提交
  7. 09 9月, 2006 1 次提交
  8. 08 9月, 2006 1 次提交
  9. 07 9月, 2006 1 次提交
  10. 02 9月, 2006 1 次提交
    • S
      Replace uses of strdup with xstrdup. · 9befac47
      Shawn Pearce 提交于
      Like xmalloc and xrealloc xstrdup dies with a useful message if
      the native strdup() implementation returns NULL rather than a
      valid pointer.
      
      I just tried to use xstrdup in new code and found it to be missing.
      However I expected it to be present as xmalloc and xrealloc are
      already commonly used throughout the code.
      
      [jc: removed the part that deals with last_XXX, which I am
       finding more and more dubious these days.]
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9befac47
  11. 24 8月, 2006 1 次提交
    • S
      Convert memcpy(a,b,20) to hashcpy(a,b). · e702496e
      Shawn Pearce 提交于
      This abstracts away the size of the hash values when copying them
      from memory location to memory location, much as the introduction
      of hashcmp abstracted away hash value comparsion.
      
      A few call sites were using char* rather than unsigned char* so
      I added the cast rather than open hashcpy to be void*.  This is a
      reasonable tradeoff as most call sites already use unsigned char*
      and the existing hashcmp is also declared to be unsigned char*.
      
      [jc: Splitted the patch to "master" part, to be followed by a
       patch for merge-recursive.c which is not in "master" yet.
      
       Fixed the cast in the latter hunk to combine-diff.c which was
       wrong in the original.
      
       Also converted ones left-over in combine-diff.c, diff-lib.c and
       upload-pack.c ]
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e702496e
  12. 18 8月, 2006 1 次提交
  13. 17 8月, 2006 1 次提交
  14. 16 8月, 2006 2 次提交
  15. 15 8月, 2006 1 次提交
  16. 11 8月, 2006 1 次提交
  17. 10 8月, 2006 2 次提交
  18. 04 8月, 2006 1 次提交
    • J
      diff.c: do not use pathname comparison to tell renames · ef677686
      Junio C Hamano 提交于
      The final output from diff used to compare pathnames between
      preimage and postimage to tell if the filepair is a rename/copy.
      By explicitly marking the filepair created by diffcore_rename(),
      the output routine, resolve_rename_copy(), does not have to do
      so anymore.  This helps feeding a filepair that has different
      pathnames in one and two elements to the diff machinery (most
      notably, comparing two blobs).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ef677686
  19. 01 8月, 2006 1 次提交
  20. 24 7月, 2006 1 次提交
    • J
      Colorize 'commit' lines in log ui · ce436973
      Jeff King 提交于
      When paging through the output of git-whatchanged, the color cues help to
      visually navigate within a diff. However, it is difficult to notice when a
      new commit starts, because the commit and log are shown in the "normal"
      color. This patch colorizes the 'commit' line, customizable through
      diff.colors.commit and defaulting to yellow.
      
      As a side effect, some of the diff color engine (slot enum, get_color) has
      become accessible outside of diff.c.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ce436973
  21. 14 7月, 2006 2 次提交
  22. 10 7月, 2006 1 次提交
    • S
      Avoid C99 initializers · 344c52ae
      Shawn Pearce 提交于
      In a handful places, we use C99 structure and array
      initializers, which some compilers do not support.
      
      This can be handy when you are trying to compile GIT on a
      Solaris system that has an older C compiler, for example.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      344c52ae
  23. 09 7月, 2006 1 次提交
    • J
      "git -p cmd" to page anywhere · 85fb65ed
      Junio C Hamano 提交于
      This allows you to say:
      
      	git -p diff v2.6.16-rc5..
      
      and the command pipes the output of any git command to your pager.
      
      [jc: this resurrects a month old RFC patch with improvement
       suggested by Linus to call it --paginate instead of --less.]
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      85fb65ed
  24. 08 7月, 2006 6 次提交
  25. 07 7月, 2006 1 次提交
  26. 04 7月, 2006 1 次提交
    • J
      Make zlib compression level configurable, and change default. · 12f6c308
      Joachim B Haga 提交于
      With the change in default, "git add ." on kernel dir is about
      twice as fast as before, with only minimal (0.5%) change in
      object size. The speed difference is even more noticeable
      when committing large files, which is now up to 8 times faster.
      
      The configurability is through setting core.compression = [-1..9]
      which maps to the zlib constants; -1 is the default, 0 is no
      compression, and 1..9 are various speed/size tradeoffs, 9
      being slowest.
      
      Signed-off-by: Joachim B Haga (cjhaga@fys.uio.no)
      Acked-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      12f6c308
  27. 02 7月, 2006 1 次提交
  28. 29 6月, 2006 1 次提交
  29. 28 6月, 2006 1 次提交
    • J
      Fix some more diff options changes. · 3969cf7d
      Junio C Hamano 提交于
      This fixes various problems in the new diff options code.
      
       - Fix --cc/-c --patch; it showed two-tree diff used internally.
      
       - Use "---\n" only where it matters -- that is, use it
         immediately after the commit log text when we show a
         commit log and something else before the patch text.
      
       - Do not output spurious extra "\n"; have an extra newline
         after the commit log text always when we have diff output and
         we are not doing oneline.
      
       - When running a pickaxe you need to go recursive.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      3969cf7d