git-filter-repo/t/t9390/unusual-filtered
Elijah Newren cefeef1c0a filter-repo: use new --date-format=raw-permissive fast-import option
fast-import gained a new raw-permissive date format explictly for
allowing people to import repositories as-is.  Make use of the flag, and
stop rewriting the bogus timezone found in rails.git.

If users do not like these bogus times, they can of course write a
filter to fix them (or even make them bogus in a different way).  For
example:

    git filter-repo ... --commit-callback '
      if commit.author_date.endswith(b"+051800"):
        commit.author_date.replace(b"+051800", b"+0261")
    '

Signed-off-by: Elijah Newren <newren@gmail.com>
2020-07-07 09:38:34 -06:00

24 lines
382 B
Plaintext

feature done
blob
mark :1
data 5
hello
reset refs/heads/develop
commit refs/heads/develop
mark :2
author Srinivasa Ramanujan <fellow@cambridge.org> 1535228562 +051800
committer Srinivasa Ramanujan <fellow@cambridge.org> 1535228562 +051800
data 8
Initial
M 100644 :1 greeting
reset refs/heads/master
from :2
tag v1.0
from :2
tagger little.john <> 1535229618 -0700
data 4
v1.0
done