1. 06 9月, 2009 1 次提交
  2. 04 9月, 2009 4 次提交
  3. 03 9月, 2009 6 次提交
  4. 02 9月, 2009 1 次提交
    • J
      status: list unmerged files much later · 228e7b5d
      Johannes Sixt 提交于
      When resolving a conflicted merge, two lists in the status output need
      more attention from the user than other parts.
      
       - the list of updated paths is useful to review the amount of changes the
         merge brings in (the user cannot do much about them other than
         reviewing, though); and
      
       - the list of unmerged paths needs the most attention from the user; the
         user needs to resolve them in order to proceed.
      
      Since the output of git status does not by default go through the pager,
      the early parts of the output can scroll away at the top. It is better to
      put the more important information near the bottom.  During a merge, local
      changes that are not in the index are minimum, and you should keep the
      untracked list small in any case, so moving the unmerged list from the top
      of the output to immediately after the list of updated paths would give us
      the optimum layout.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Acked-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      228e7b5d
  5. 01 9月, 2009 6 次提交
  6. 31 8月, 2009 4 次提交
    • J
      fix approxidate parsing of relative months and years · 931e8e27
      Jeff King 提交于
      These were broken by b5373e9. The problem is that the code
      marks the month and year with "-1" for "we don't know it
      yet", but the month and year code paths were not adjusted to
      fill in the current time before doing their calculations
      (whereas other units follow a different code path and are
      fine).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      931e8e27
    • J
      tests: add date printing and parsing tests · 34dc6e73
      Jeff King 提交于
      Until now, there was no coverage of relative date printing
      or approxidate parsing routines (mainly because we had no
      way of faking the "now" time for relative date calculations,
      which made consistent testing impossible).
      
      This new script tries to exercise the basic features of
      show_date and approxidate. Most of the tests are just "this
      obvious thing works" to prevent future regressions, with a
      few exceptions:
      
        - We confirm the fix in 607a9e8a that relative year/month
          dates in the latter half of a year round correctly.
      
        - We confirm that the improvements in b5373e9 and 1bddb25
          work.
      
        - A few tests are marked to expect failure, which are
          regressions recently introduced by the two commits
          above.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      34dc6e73
    • J
      refactor test-date interface · 4f6552ea
      Jeff King 提交于
      The test-date program goes back to the early days of git,
      where it was presumably used to do manual sanity checks on
      changes to the date code. However, it is not actually used
      by the test suite to do any sort of automatic of systematic
      tests.
      
      This patch refactors the interface to the program to try to
      make it more suitable for use by the test suite. There
      should be no fallouts to changing the interface since it is
      not actually installed and is not internally called by any
      other programs.
      
      The changes are:
      
        - add a "mode" parameter so the caller can specify which
          operation to test
      
        - add a mode to test relative date output from show_date
      
        - allow faking a fixed time via the TEST_DATE_NOW
          environment variable, which allows consistent automated
          testing
      
        - drop the use of ctime for showing dates in favor of our
          internal iso8601 printing routines. The ctime output is
          somewhat redundant (because of the day-of-week) which
          makes writing test cases more annoying.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4f6552ea
    • A
      Add date formatting and parsing functions relative to a given time · 33012fc4
      Alex Riesen 提交于
      The main purpose is to allow predictable testing of the code.
      Signed-off-by: NAlex Riesen <raa.lkml@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      33012fc4
  7. 30 8月, 2009 4 次提交
  8. 29 8月, 2009 10 次提交
  9. 28 8月, 2009 4 次提交