nisse@lysator.liu.se (Niels Möller) writes:
Martin Storsjö martin@martin.st writes:
The author mapping looks good to me at least, looking forward to the final repo (including separated nettle)! Thanks for your work on this!
I now have a first nettle test repo at git://git.lysator.liu.se/lsh-test/nettle-test.git
It doesn't build:
jas@latte:~/src/nettle-test master$ ./.bootstrap jas@latte:~/src/nettle-test master$ ./configure configure: error: cannot find install-sh, install.sh, or shtool in . "."/. jas@latte:~/src/nettle-test master$
However perhaps that is one of the unresolved issues.
However, this conversion loses quite a lot of history, including all nettle-1.15 releases. To actually build old versions, one would need to use the lsh repo (due to the shared files linked by lsh's ./.bootstrap), but it would be nice to still have the history in the nettle repo.
I think the following approach would make some sense, using git filter-branch --tree-filter or possibly --index-filter:
Delete everything except nettle, src/nettle and src/symmetric.
If nettle exists, move its contents up one level and delete nettle.
Otherwise, if src/nettle exists (and is non-empty), move its contents up two levels and delete the original directory.
Otherwise, if src/symmetric exists (and is non-empty), move its contents up two levels and delete the original directory.
Otherwise, the tree should be empty. It's from the first few weeks of lsh development, not relevant to nettle.
As for these advanced git features, I have no idea.
However, I'm not sure it is that important to make the git repo usable for building older nettle releases -- for anyone that really wants to go back in time and build old things can always look at the 'lsh' repository. That reflects how nettle was developed before, and consequently how everyone need to work with those releases.
For most people, working on master and/or the latest stable release is what's interesting. So I'd say do a git conversion and then make a release from git and then work forward from there.
/Simon