Re: [PATCH v2 6/7] checkout: split into switch-branch and checkout-files
- From
Stefan Beller <sbeller@google.com>
- Date
- Nov 29, 2018, 18:14 UTC
- Message-ID
- <CAGZ79kY2Fu_3b8MnO-yV_JhevZRgx7=6ndX-N_R2HdJGByciHA@mail.gmail.com>
- In-Reply-To
- <CACsJy8An2n5yah1UTCJZoC5ucSpCoM0vrXtEXnjg-di7jQZwLA@mail.gmail.com>
Show 10 quoted lines
> > Idea: > > If git checkout-files modifies the submodules file, it could also > > auto-update the submodules. (For example, with something like "git > > submodule update --init --recursive --progress"). > > This one is tricky because we should deal with submodule autoupdate > consistently across all porcelain commands (or at least common ones), > not just checkout-files. I'd prefer to delay this until later. Once we > figure out what to do with other commands, then we can still change > defaults for checkout-files.
checkout/reset are respecting the submodule.recurse setting for this already, and as your patches only change the UX frontend
git -c submodule.recurse checkout-files <pathsspec>
would also touch submodules. Given that deep down in the submodules it's all about files again, we could think checkout-files is still a good name.
I think Stefan X. is asking for making submodule.recurse to default to true, which is indeed unrelated to this.
Stefan