Johannes Sixt writes:
> Why not just replace the six-liner by this one-liner:
>
> target=${target#"$curdir"/}
Simple enough ;-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vge
Am 19.04.2013 18:45, schrieb Junio C Hamano:
> John Keeping writes:
>
>> On Thu, Apr 18, 2013 at 03:40:41PM -0700, Junio C Hamano wrote:
>>> John Keeping writes:
>>>
+relative_path ()
+{
+ local target curdir result
+ target=$1
+ curdir=${2-$wt_prefix}
+ curdir=
John Keeping writes:
> On Thu, Apr 18, 2013 at 03:40:41PM -0700, Junio C Hamano wrote:
>> John Keeping writes:
>>
>> > +relative_path ()
>> > +{
>> > + local target curdir result
>> > + target=$1
>> > + curdir=${2-$wt_prefix}
>> > + curdir=${curdir%/}
>> > + result=
>> > +
>> > + while te
On Thu, Apr 18, 2013 at 03:40:41PM -0700, Junio C Hamano wrote:
> John Keeping writes:
>
> > +relative_path ()
> > +{
> > + local target curdir result
> > + target=$1
> > + curdir=${2-$wt_prefix}
> > + curdir=${curdir%/}
> > + result=
> > +
> > + while test -n "$curdir"
> > + do
> >
On Thu, Apr 18, 2013 at 3:50 PM, John Keeping wrote:
> Use the new rev-parse --prefix option to process all paths given to the
> submodule command, dropping the requirement that it be run from the
> top-level of the repository.
>
> Signed-off-by: John Keeping
> ---
> diff --git a/t/t7400-submodul
John Keeping writes:
> +relative_path ()
> +{
> + local target curdir result
> + target=$1
> + curdir=${2-$wt_prefix}
> + curdir=${curdir%/}
> + result=
> +
> + while test -n "$curdir"
> + do
> + case "$target" in
> + "$curdir/"*)
> +
Use the new rev-parse --prefix option to process all paths given to the
submodule command, dropping the requirement that it be run from the
top-level of the repository.
Signed-off-by: John Keeping
---
Changes since v2:
- Handle relative paths given to "submodule add --reference=./..."
- C
7 matches
Mail list logo