Re: [PATCH v5 1/4] implement submodule config API for lookup of .gitmodules values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heiko Voigt <hvoigt@xxxxxxxxxx> writes:

> On Thu, Jul 09, 2015 at 01:00:10PM -0700, Junio C Hamano wrote:
>> Jens Lehmann <Jens.Lehmann@xxxxxx> writes:
>> 
>> > The git-submodule script doesn't need this and is fine using plain old
>> > "git config", as by the time it is run the .gitmodules file is already
>> > updated in the work tree. Heiko's series is about adding infrastructure
>> > to allow builtins like checkout and friends to access the configuration
>> > values from the .gitmodules file of the to-be-checked-out commit when
>> > run with "--recurse-submodules". And yes, if we want to expose this
>> > functionality to users or scripts some day "git config" looks like the
>> > best place to do that to me too.
>> 
>> Did you mean "git submodule config"?
>
> I think he actually meant "git config" and that is already implemented.
> When I implemented the infrastructure to read configurations from blobs,
> Peff extended it so it will be exposed via the config command line. E.g.
> you can do:
>
> 	git config --blob HEAD^^^:.gitmodules <value>
>
> to get .gitmodules configurations from the history, so that is already
> implemented.  And for reading .gitmodules values we probably do not need
> more,...

Ah, I see.  Thanks.
--
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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]