Re: [PATCH/RFC v2] git-submodule: multi-level module definition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ping Yin
Date: Wednesday, March 5, 2008 - 10:48 pm

On Thu, Mar 6, 2008 at 11:48 AM, Junio C Hamano <gitster@pobox.com> wrote:


We agree on this point and 'fall back' is what i will try to do. Our
difference is the
 way to implement it. Since finally we can fall back to .gitmodules
when information
 is not found in .git/config, why always use 'git init' at the first.

'git init' should be useful when a user has many special requirements which can
help the user copy info from .gitmodules to .git/config and then edit
.git/config.
But in many cases (at least in my company), users may not have special
requirements,
so he needn't use 'git init'.

So now 'git init' is not the first class citizen, it's just a util to
help users when they need it.

And there may be inconsistence between .git/config and .gitmodules
when always using 'git init'
at first. If .gitmodules has changed in the upstream, what should user
do? run 'git init' again? That's
not so easy.  Since .git/config has a whole copy of .gitmodules, the
user has no easy way to know
which entries he has changed which shouldn't follow the upstream changes.

I think it's enough.

In this bash script, there are many places which don't/can't handle
names containing whitespace
well. So the decaring a naming rule for the modue name sounds good.



-- 
Ping Yin
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH/RFC v2] git-submodule: multi-level module defin ..., Johannes Schindelin, (Tue Mar 4, 9:12 am)
Re: [PATCH/RFC v2] git-submodule: multi-level module defin ..., Johannes Schindelin, (Wed Mar 5, 7:32 pm)
Re: [PATCH/RFC v2] git-submodule: multi-level module defin ..., Ping Yin, (Wed Mar 5, 10:48 pm)