From: Jonathan Nieder Date: Fri, 19 Oct 2018 20:58:37 GMT Subject: Re: Bug with "git mv" and submodules, and with "git submodule add something --force" Message-ID: <20181019205837.GA84932@aiede.svl.corp.google.com> In-Reply-To: Stefan Beller wrote: > Maybe for now we can do with just an update of the documentation/bugs > section and say we cannot move files in and out of submodules? I think we have some existing logic to prevent "git add"-ing a file within a submodule to the superproject, for example. So "git mv" should learn the same trick. And perhaps the trick needs to be moved down a layer (e.g. into the index API). Hints? Thanks, Jonathan