"git mv" when move in project tree?

When I move files or folders in PHPStorm (Intelij), it executes “git mv”.

I couldn’t find any packages that do this in Atom. The functionality would be this:

  • When a file or folder is moved by dragging in the project tree
  • A search is done recursively up the file tree to the project root
  • If a .git folder with proper git config is found
  • Then the file is moved using “git mv” rather than “mv”

Thoughts or suggestions? Either to implement (i.e. is there a “mv” hook?), if this would be easy, or a package that already implements?