1. 10 7月, 2012 1 次提交
  2. 04 2月, 2012 2 次提交
    • J
      parse_date(): '@' prefix forces git-timestamp · 2c733fb2
      Junio C Hamano 提交于
      The only place that the issue this series addresses was observed
      where we read "cat-file commit" output and put it in GIT_AUTHOR_DATE
      in order to replay a commit with an ancient timestamp.
      
      With the previous patch alone, "git commit --date='20100917 +0900'"
      can be misinterpreted to mean an ancient timestamp, not September in
      year 2010.  Guard this codepath by requring an extra '@' in front of
      the raw git timestamp on the parsing side. This of course needs to
      be compensated by updating get_author_ident_from_commit and the code
      for "git commit --amend" to prepend '@' to the string read from the
      existing commit in the GIT_AUTHOR_DATE environment variable.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2c733fb2
    • J
      parse_date(): allow ancient git-timestamp · 116eb3ab
      Junio C Hamano 提交于
      The date-time parser parses out a human-readble datestring piece by
      piece, so that it could even parse a string in a rather strange
      notation like 'noon november 11, 2005', but restricts itself from
      parsing strings in "<seconds since epoch> <timezone>" format only
      for reasonably new timestamps (like 1974 or newer) with 10 or more
      digits. This is to prevent a string like "20100917" from getting
      interpreted as seconds since epoch (we want to treat it as September
      17, 2010 instead) while doing so.
      
      The same codepath is used to read back the timestamp that we have
      already recorded in the headers of commit and tag objects; because
      of this, such a commit with timestamp "0 +0000" cannot be rebased or
      amended very easily.
      
      Teach parse_date() codepath to special case a string of the form
      "<digits> +<4-digits>" to work this issue around, but require that
      there is no other cruft around the string when parsing a timestamp
      of this format for safety.
      
      Note that this has a slight backward incompatibility implications.
      
      If somebody writes "git commit --date='20100917 +0900'" and wants it
      to mean a timestamp in September 2010 in Japan, this change will
      break such a use case.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      116eb3ab
  3. 01 10月, 2011 1 次提交
  4. 28 9月, 2011 1 次提交
  5. 27 9月, 2011 2 次提交
  6. 24 9月, 2011 11 次提交
  7. 20 9月, 2011 4 次提交
  8. 19 9月, 2011 1 次提交
  9. 17 9月, 2011 4 次提交
  10. 15 9月, 2011 1 次提交
  11. 13 9月, 2011 7 次提交
  12. 12 9月, 2011 5 次提交