Le 02/08/2016 à 13:23, Peter Uhnak a écrit :
On Tue, Aug 02, 2016 at 01:04:10PM +0200, Nicolas Passerini wrote:
There is this script from Peter Uhnak
https://www.peteruhnak.com/blog/2016/03/02/moving-project-from-smalltalkhub-to-github/#Copying-repository
but it will not be able to preserve commit date.
At the time of the (post) writing it did preserve commit dates, but there was
no metadata-less yet.
In any case, I don't see a reason why it shouldn't preserve commit dates with
metadata-less — it goes mcz by mcz and recommits it with given date, no?
No it doesn't set the commit date. I'm not even sure git would allow you
to set commit dates in the past, but I may be wrong (this is probably
what git-cvs does).
I'd say that the procedure is to make a copy on a metadata-full
repository, to preserve all versions (for archeology), and then now or
later switch the repository to metadata-less mode.
GitFileTree has an api for carrying over a committer name in a mcz to an
author name into git, by preloading a map of mcz author -> git author.
Thierry
Peter
Preserving commit dates... I think it could only be possible in
metadata-ful git repositories, which I would not recommend.
On Tue, Aug 2, 2016 at 12:10 PM, Holger Freyther <hol...@freyther.de> wrote:
Hi,
I think I have seen something but can't find it right now. I would like to
move to git but preserve the history (and my commit messages and the commit
date/time). Is there a script that goes through all versions of a package
and copies them to git repository? Will it be able to preserve the original
commit date?
thank you
holger