1. 07 9月, 2012 4 次提交
  2. 25 8月, 2012 10 次提交
  3. 24 8月, 2012 2 次提交
  4. 23 8月, 2012 1 次提交
  5. 17 8月, 2012 2 次提交
  6. 16 8月, 2012 5 次提交
  7. 07 8月, 2012 15 次提交
  8. 05 8月, 2012 1 次提交
    • M
      tests: Introduce test_seq · d17cf5f3
      Michał Kiedrowicz 提交于
      Jeff King wrote:
      
      	The seq command is GNU-ism, and is missing at least in older BSD
      	releases and their derivatives, not to mention antique
      	commercial Unixes.
      
      	We already purged it in b3431bc6 (Don't use seq in tests, not
      	everyone has it, 2007-05-02), but a few new instances have crept
      	in. They went unnoticed because they are in scripts that are not
      	run by default.
      
      Replace them with test_seq that is implemented with a Perl snippet
      (proposed by Jeff).  This is better than inlining this snippet
      everywhere it's needed because it's easier to read and it's easier
      to change the implementation (e.g. to C) if we ever decide to remove
      Perl from the test suite.
      
      Note that test_seq is not a complete replacement for seq(1).  It
      just has what we need now, in addition that it makes it possible for
      us to do something like "test_seq a m" if we wanted to in the
      future.
      
      There are also many places that do `for i in 1 2 3 ...` but I'm not sure
      if it's worth converting them to test_seq.  That would introduce running
      more processes of Perl.
      Signed-off-by: NMichał Kiedrowicz <michal.kiedrowicz@gmail.com>
      Acked-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d17cf5f3