From: Junio C Hamano <gitster@pobox.com>
To: Ping Yin <pkufranky@gmail.com>
Cc: gitster@pobox.com, git@vger.kernel.org
Subject: Re: [PATCH] git-submodule: Fix typo 'url' which should be '$url'
Date: Sun, 02 Mar 2008 18:19:37 -0800 [thread overview]
Message-ID: <7vy790k0qu.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 1204509798-671-1-git-send-email-pkufranky@gmail.com
Ping Yin <pkufranky@gmail.com> writes:
> More thinking, why does empty url mean uninitialized? How about the
> case that the submodule url is deleted from .git/config?
That means the user is not interested in that subproject.
In-tree .gitmodules is merely a place a user who is interested in a
partcular module described in it will pick up a _hint_ about attributes
(currently, URL but there may be others) on the module from, when showing
and recording his interest.
Notice I said "hint"; .gitmodules is _not_ meant as "default" in the sense
that "if the user does not have it in .git/config then read from it".
"Is it checked-out", would be a good indication of user's interest when
you talk about the current status (like "git submodule summary"), but if
you think about the case of switching between branches that has and does
not have a module, you would realize that "is it checked-out?" cannot be
the authoritative and only place to record the user's interest.
prev parent reply other threads:[~2008-03-03 2:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-03 2:03 [PATCH] git-submodule: Fix typo 'url' which should be '$url' Ping Yin
2008-03-03 2:19 ` Junio C Hamano [this message]
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=7vy790k0qu.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pkufranky@gmail.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).