1. 14 12月, 2006 19 次提交
  2. 13 12月, 2006 16 次提交
  3. 12 12月, 2006 5 次提交
    • A
      Colourise git-branch output · a1158cae
      Andy Parkins 提交于
      I wanted to have a visual indication of which branches are local and
      which are remote in git-branch -a output; however Junio was concerned
      that someone might be using the output in a script.  This patch
      addresses the problem by colouring the git-branch output - which in
      "auto" mode won't be activated.
      
      I've based it off the colouring code for builtin-diff.c; which means
      there is a branch color configuration variable that needs setting to
      something before the color will appear.
      
      The colour parameter is "color.branch" rather than "branch.color" to
      avoid clashing with the default namespace for default branch merge
      definitions.
      
      This patch chooses green for local, red for remote and bold green for
      current.
      Signed-off-by: NAndy Parkins <andyparkins@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a1158cae
    • J
      diff --numstat: show binary with '-' to match "apply --numstat" · bfddbc5e
      Junio C Hamano 提交于
      This changes the --numstat output for binary files from "0 0" to
      "- -" to match what "apply --numstat" does.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bfddbc5e
    • R
      Make cvsexportcommit work with filenames with spaces and non-ascii characters. · e86ad71f
      Robin Rosenberg 提交于
      This patch uses git-apply to do the patching which simplifies the code a lot
      and also uses one pass to git-diff. git-apply gives information on added,
      removed files as well as which files are binary.
      
      Removed the test for checking for matching binary files when deleting them
      since git-apply happily deletes the file. This is matter of taste since we
      allow some fuzz for text patches also.
      
      Error handling was cleaned up, but not much tested.
      Signed-off-by: NRobin Rosenberg <robin.rosenberg@dewire.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e86ad71f
    • J
      shortlog: fix segfault on empty authorname · 6f987258
      Junio C Hamano 提交于
      The old code looked backwards from the email address to parse
      the name, allowing an arbitrary number of spaces between the
      two. However, in the case of no name, we looked back too far to
      the 'author' (or 'Author:') header.
      
      The bug was triggered by commit febf7ea4bed from linux-2.6.
      
      Jeff King originally fixed it by looking back only one
      character; Johannes Schindelin pointed out that we could try
      harder while at it to cope with commits with broken headers.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6f987258
    • J
      shortlog: remove "[PATCH]" prefix from shortlog output · bca73251
      Junio C Hamano 提交于
      Originally noticed by Nicolas Pitre; the real cause was the code
      was prepared to deal with [PATCH] (and [PATCH n/m whatever])
      prefixes but forgot that the string can be indented while acting
      as a filter.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bca73251