author | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Jul 2007 22:51:26 +0000 (15:51 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Jul 2007 22:51:26 +0000 (15:51 -0700) | ||
commit | 537601ac74db2d93665b20a67ba05851703bb2c3 | |
tree | 5fcaf7c0882c3bc9b064a0ebab01b6b398054739 | tree | snapshot |
parent | 887c5266d64e0a724986af1610985bb42af5bd47 | commit | diff |
git-submodule module_name: avoid using unwieldy "value_regexp" feature.
"module_name $path" function wants to look up a configuration
variable "submodule.<modulename>.path" whose value is $path, and
return the <modulename> found. "git-config --get-regexp" is the
natural thing to use for this, but (1) its value matching has an
unfortunate "feature" that takes leading '!' specially, and (2)
its output needs to be parsed with sed to extract <modulename>
part anyway.
This changes the call to "git-config --get-regexp" not to use
the value-regexp part, and moves the "pick the one whose value
is $path" part to the downstream sed.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"module_name $path" function wants to look up a configuration
variable "submodule.<modulename>.path" whose value is $path, and
return the <modulename> found. "git-config --get-regexp" is the
natural thing to use for this, but (1) its value matching has an
unfortunate "feature" that takes leading '!' specially, and (2)
its output needs to be parsed with sed to extract <modulename>
part anyway.
This changes the call to "git-config --get-regexp" not to use
the value-regexp part, and moves the "pick the one whose value
is $path" part to the downstream sed.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history |