Re: [PATCH] status&commit: Teach them to show commits of modified submodules.
- From
Yin Ping <pkufranky@gmail.com>
- Date
- Nov 2, 2007, 23:50 UTC
- Message-ID
- <46dff0320711021650q4e56d025q63a961176c682a14@mail.gmail.com>
- In-Reply-To
- <7vd4us1jds.fsf@gitster.siamese.dyndns.org>
On 11/3/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> How does this work when you are a toplevel developer and do not > have the submodule cloned and checked out? > > Our code should treat having the submodule directory and not > having it when there is a mode 160000 entry in the index equally > likely. Cloning and checking-out is _not_ the norm (nor the > exception). >
When submodule is not cheched out, it is never modified. In this case modules variable will be empty ( since git diff --cached is used) and the corrosponding module directory will not be checked. So the output will be the same as the original output.
-- franky