From: Jens Lehmann <Jens.Lehmann@web.de>
To: Nazri Ramliy <ayiehere@gmail.com>, John Smith <johsmi9933@inbox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Why are submodules not automatically handled by default or at least configurable to do so?
Date: Mon, 26 Oct 2015 17:56:33 +0100 [thread overview]
Message-ID: <562E5B41.9090801@web.de> (raw)
In-Reply-To: <CAEY4ZpPduXXqgW3rWn9rzkpHrTvY8QfPX=YcBZ_DpyVwnsZ6jw@mail.gmail.com>
Am 26.10.2015 um 05:48 schrieb Nazri Ramliy:
> On Mon, Oct 26, 2015 at 7:10 AM, John Smith <johsmi9933@inbox.com> wrote:
>> When would people routinely check out a branch and want to stay with the submodules as
>> the have been checked out for the old branch?
>
> I do this a lot. At my $dayjob we have a super project with bunch of
> sub projects.
> Each subproject has its corresponding rpm spec file in the
> superproject - it's quite
> often that I work on a "git-merge-base--octopus" branch that updates only the
> spec files and nothing else - so when changing between branches I
> don't care what
> states the submodules are in. When the fixes to the spec files are ready I just
> checkout to the respective branches and merge in the changes - I don't actively
> do "git submodule update" when switching to different branches.
Which seems a bit error prone as you could forget to update the submodules
and build incorrect rpms from them, or am I missing something?
I understand why you don't need to update the submodules every time, but
would it hurt your workflow if they did (but don't get me wrong, that will
always be configurable).
next prev parent reply other threads:[~2015-10-26 16:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-25 23:10 Why are submodules not automatically handled by default or at least configurable to do so? John Smith
2015-10-26 0:56 ` Chris Packham
2015-10-26 16:28 ` Stefan Beller
2015-10-26 19:53 ` Junio C Hamano
2015-10-26 4:48 ` Nazri Ramliy
2015-10-26 16:56 ` Jens Lehmann [this message]
2015-10-28 7:36 ` Nazri Ramliy
2015-10-27 10:50 ` Nick
2015-10-27 10:56 ` Davide Fiorentino
2015-10-27 11:40 ` Nick
2015-10-27 12:16 ` Konstantin Khomoutov
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=562E5B41.9090801@web.de \
--to=jens.lehmann@web.de \
--cc=ayiehere@gmail.com \
--cc=git@vger.kernel.org \
--cc=johsmi9933@inbox.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).