Skip to content

How to do git mv for renaming? #11

@Boscop

Description

@Boscop

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions