1. 09 2月, 2009 1 次提交
    • S
      add -p: get rid of Git.pm warnings about unitialized values · 9aad6cba
      Stephan Beyer 提交于
      After invoking git add -p I always got the warnings:
      
       Use of uninitialized value $_[3] in exec at Git.pm line 1282.
       Use of uninitialized value $args[2] in join or string at Git.pm line 1264.
      
      A bisect showed that these warnings occur in a3019736 "add -p: print errors
      in separate color" the first time.
      
      They can be reproduced by setting color.ui (or color.interactive) to "auto"
      and unsetting color.interactive.help and color.interactive.error.
      I am using Perl 5.10.0.
      
      The reason of the warning is that color.interactive.error defaults to
      color.interactive.help which defaults to nothing in the specific codepath.
      It defaults to 'red bold' some lines above which could lead to the wrong
      assumption that it always defaults to 'red bold' now.
      
      This patch lets it default to 'red bold', blowing the warnings away.
      Signed-off-by: NStephan Beyer <s-beyer@gmx.net>
      Acked-By: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9aad6cba
  2. 08 2月, 2009 4 次提交
  3. 07 2月, 2009 10 次提交
  4. 06 2月, 2009 19 次提交
  5. 05 2月, 2009 6 次提交