About a year ago, Diesel changed the name format of the migrations that it generates.
I still have many migrations in the old format and want to use rnr to rename them into the new format.
But how can I do the renaming with git mv so that git properly recognizes that the folders were renamed?
If I just do rnr -f -D '(\d{4})(\d{2})(\d{2})(\d{6})' '$1-$2-$3-$4' ./*, git shows the files as being removed and new files added.
When I use git mv manually, it correctly shows them as renamed..
About a year ago, Diesel changed the name format of the migrations that it generates.
I still have many migrations in the old format and want to use rnr to rename them into the new format.
But how can I do the renaming with
git mvso that git properly recognizes that the folders were renamed?If I just do
rnr -f -D '(\d{4})(\d{2})(\d{2})(\d{6})' '$1-$2-$3-$4' ./*, git shows the files as being removed and new files added.When I use
git mvmanually, it correctly shows them as renamed..