MattClarkson / CMakeCatchTemplate

Template C++ project using CMake, CTest, Catch, and a SuperBuild for dependencies such as Boost, gflags, glog, VTK, OpenCV and PCL.
BSD 3-Clause "New" or "Revised" License
30 stars 13 forks source link

Update rename.sh - to preserve git history #19

Closed MattClarkson closed 6 years ago

MattClarkson commented 6 years ago

The rename.sh should work on a git repo. Otherwise, derived projects will have no audit trail of which version they forked from.

So, process should be:

  1. Clone CMakeCatchTemplate
  2. Rename top level folder manually
  3. Run rename.sh which does all file moves using '''git mv''', but leaves everything checked out.
  4. User who ran the rename.sh then does 1 commit to indicate that the new project builds nicely.

so the commit log, has ALL the CMakeCatchTemplate commits, and then 1 commit as the project is renamed into a new one.

The user is of course free to squash all previous commits as they see fit, but I would see that as bad practice.