I have a large CVS repository containing files in ISO-8859-1
and want to convert this to git.
Sure I can configure git to use ISO-8859-1
for encoding, but I would like to have it in utf8
.
Now with tools such as iconv
or recode
I can convert the encoding for the files in my working tree. I could commit this with a message like converted encoding
.
My question now is, is there a possibility to convert the complete history? Either when converting from cvs to git or afterwards. My idea would be to write a script that reads each commit in the git repository and to convert it to utf8
and to commit it in a new git repository.
Is this possible (I am unsure about the hash codes and how to walk through the commits, branches and tags). Or is there a tool that can handle something like this?
iconv
and a normal commit is the way to go. – Alexeiutf8
encoding based on the history of the first. Which is basically the same instead that I wouldn't modify the existing repo. – Hoffman