On Tue, Nov 29, 2016 at 11:28 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Duy Nguyen <pclouds@xxxxxxxxx> writes: > >> Another way, as pointed out by j6t, is go with "move within filesystem >> only", at least at the first step. Which is probably a good idea >> anyway so we can concentrate on git-specific stuff before going to >> minor and complicated copy/move details. > > Yup, that is a very sensible approach. In case you decided to go another way than a plain rename, please make it easy to reuse (e.g. move_directory_safely exposed to the rest of the codebase). I'd find use for that in the series currently queued as: sb/submodule-intern-gitdir which moves git directories of submodules around (from inside the submodule/.git to the superprojects .git/modules/<name>) Thanks, Stefan