Re: git commit vs. ignore-submodules
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 28, 2014, 17:59 UTC
- Message-ID
- <xmqqbnwqb3wo.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <5335A78C.60401@web.de>
Jens Lehmann <Jens.Lehmann@web.de> writes:
>> .. but it's less clear if one explicitely stages an updated >> submodule using git add. Git commit will ignore it anyway, if >> ignore=all is configured in .gitmodules. Maybe that's correct too
That definitely smells like a bug to me. Excluding modified submodules when "git add -u" is run with ignore=all would be fine and most likely the right thing to do, but once the user actually adds the change to the index, it should not be ignored.
Show 8 quoted lines
> ... >> And also, I'd like to know git folks' opinion on whether it's OK that >> git commit with ignore=all in .gitmodules ignores submodules even when >> they are explicitely staged with git add. > > No, they should be visible in status and commit when the user chose > to add them. I see if I can hack something up (as I've been bitten > myself by that recently ;-).
Thanks.