Ping Yin <pkufranky@xxxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html