From: Manish Goregaokar <manishsmail@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Manish Goregaokar via GitGitGadget <gitgitgadget@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 1/1] Documentation: Correct man page for the SHAs reported by 'submodule status'
Date: Fri, 22 Nov 2019 21:46:25 -0800 [thread overview]
Message-ID: <CACpkpxmtuunTXPc6=3bvPqGL=T7i4-LB0sKDmzLPxcNcv1ZH6A@mail.gmail.com> (raw)
In-Reply-To: <xmqqo8x32xqv.fsf@gitster-ct.c.googlers.com>
Turns out that I've found a bug! I was getting this behavior because
it wasn't detecting that submodules were modified. I'll submit a patch
shortly, but first fix this one since the documentation should be
fixed regardless.
Thanks,
-Manish Goregaokar
-Manish Goregaokar
On Fri, Nov 22, 2019 at 5:21 PM Junio C Hamano <gitster@pobox.com> wrote:
>
> "Manish Goregaokar via GitGitGadget" <gitgitgadget@gmail.com>
> writes:
>
> > From: Manish Goregaokar <manishsmail@gmail.com>
> >
> > 'git submodule status' reports the SHAs expected by the parent project,
> > not the SHAs that are actually checked out in the submodule. Checking
> > out a new SHA in a submodule will not change the output of 'git
> > submodule status' until you 'git add' the submodule.
> >
> > Signed-off-by: Manish Goregaokar <manishsmail@gmail.com>
> > ---
> > Documentation/git-submodule.txt | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
> > index 0ed5c24dc1..31e089454a 100644
> > --- a/Documentation/git-submodule.txt
> > +++ b/Documentation/git-submodule.txt
> > @@ -72,8 +72,8 @@ git-submodule will correctly locate the submodule using the relative
> > URL in `.gitmodules`.
> >
> > status [--cached] [--recursive] [--] [<path>...]::
> > - Show the status of the submodules. This will print the SHA-1 of the
> > - currently checked out commit for each submodule, along with the
> > + Show the status of the submodules. This will print the SHA-1
> > + recorded in the superproject for each submodule, along with the
> > submodule path and the output of 'git describe' for the
>
> Am I mistaken to say that neither the old or the new description is
> correct, depending on the use (or non-use) of the --cached option?
>
> ... print the object name of the commit that is currently
> checked out, or the commit that is recorded in the
> superproject if `--cached` option is given, for each
> submodule, ...
>
> perhaps?
next prev parent reply other threads:[~2019-11-23 5:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 23:11 [PATCH 0/1] doc: Correct man page for the SHAs reported by 'submodule status' Manish Goregaokar via GitGitGadget
2019-11-22 23:11 ` [PATCH 1/1] Documentation: " Manish Goregaokar via GitGitGadget
2019-11-23 1:21 ` Junio C Hamano
2019-11-23 5:46 ` Manish Goregaokar [this message]
2019-11-23 5:54 ` [PATCH v2 0/1] doc: Document 'git submodule status --cached' Manish Goregaokar via GitGitGadget
2019-11-23 5:54 ` [PATCH v2 1/1] " Manish Goregaokar via GitGitGadget
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACpkpxmtuunTXPc6=3bvPqGL=T7i4-LB0sKDmzLPxcNcv1ZH6A@mail.gmail.com' \
--to=manishsmail@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).