Commits with ancient timestamps
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | parse_date(): allow ancient git-timestampdate.c | +29 | 0 replies | |
| 2/2 | parse_date(): '@' prefix forces git-timestampbuiltin/ date.c git-sh-setup.sh +1 more | +32 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC/PATCH 0/2] Commits with ancient timestamps
Result of conversion of ancient history from other SCMs, and output from other third-party tools, can record timestamps that predates inception of Git. They can cause "git am", "git rebase" and "git commit --amend" to misbehave, because the raw git timestamp e.g.
author <[email protected]> 1328214896 -0800
are read from the commit object and passed to parse_date() machinery, which rejects raw git timestamps without sufficient number of digits to avoid misinterpreting human-written timestamp in other formats, and timestamps before 1975 do not have enough number of digits in them.
Here is a two-patch series that may improve the situation.
Note that this is not meant for direct application, unless somebody uses this extensively to make sure there is no regression.
Junio C Hamano (2):
parse_date(): allow ancient timestamps in in-header format parse_date(): '@' prefix forces git-timestamp interpretation
date.c | 30 ++++++++++++++++++++++++++++++ git-sh-setup.sh | 2 +- 2 files changed, 31 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.9.172.ge26ae