On 14/03/18 16:04, Christian Lohmaier wrote:
On Wed, Mar 14, 2018 at 4:02 PM, Stephan Bergmann <sbergman@redhat.com> wrote:
Just a heads-up:  If you want to get rid of those "submodule.*.ignore all"
configurations in your existing git repo clones, you need to do that
manually.
But think twice before you do.
There should be ~no reason to manually change a submodule's reference point.
Well, what happened at least occasionally for me is that I have a 
current git master checkout (with submodules), then do
$ git fetch ... && git checkout FETCH_HEAD
to switch to some Gerrit change that I want to modify (that happens to 
move submodule references back to older revisions, but I forget to do 
`git submodule update`), then do some modifications, and both
$ git status
and
$ git diff
only show the modifications that I made, not the changes to the 
submodules, but
$ git add -u && git commit --amend
will make the unintended changes to the submodules end up in the amended 
commit, too.
Without that unhelpful "submodule.*.ignore all" configuration, `git 
status` and `git diff` would have shown the changes to the submodules 
too, and would have told me to be careful with the `git add -u`.
Context
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.