Re: [RFC PATCH v2 12/12] submodule: remove the .gitmodules file when it is empty

2018-08-03 Thread Antonio Ospite
On Thu, 2 Aug 2018 14:15:54 -0700 Stefan Beller wrote: > On Thu, Aug 2, 2018 at 6:47 AM Antonio Ospite wrote: > > > > In particular this makes it possible to really clean things up when > > removing the last submodule with "git rm". > > This sentence is a continuation of the subject line, and I

Re: [RFC PATCH v2 12/12] submodule: remove the .gitmodules file when it is empty

2018-08-02 Thread Stefan Beller
On Thu, Aug 2, 2018 at 6:47 AM Antonio Ospite wrote: > > In particular this makes it possible to really clean things up when > removing the last submodule with "git rm". This sentence is a continuation of the subject line, and I had to reread it to follow along. > > The rationale is that if git

[RFC PATCH v2 12/12] submodule: remove the .gitmodules file when it is empty

2018-08-02 Thread Antonio Ospite
In particular this makes it possible to really clean things up when removing the last submodule with "git rm". The rationale is that if git creates .gitmodules when adding the first submodule it should also remove it when removing the last submodule. Signed-off-by: Antonio Ospite --- submodule.