Re: [PATCH] diff: add tests for --relative without optional prefix value

2 messages, 2 authors, 2017-12-07 · open the first message on its own page

Re: [PATCH] diff: add tests for --relative without optional prefix value

From: Junio C Hamano <hidden>
Date: 2017-12-07 21:51:01

Jeff King [off-list ref] writes:
On Thu, Dec 07, 2017 at 11:01:35AM -0800, Jacob Keller wrote:
quoted
From: Jacob Keller <redacted>

We already have tests for --relative, but they currently only test when
a prefix has been provided. This fails to test the case where --relative
by itself should use the current directory as the prefix.

Teach the check_$type functions to take a directory argument to indicate
which subdirectory to run the git commands in. Add a new test which uses
this to test --relative without a prefix value.
This looks good to me (and I slightly prefer it over Junio's for the
simplicity).

I agree on the ordering suggestion Junio made.
I also prefer this one over the other one, provided if it is ported
on top of the preliminary clean-up I did in the other one.

Thanks.

Re: [PATCH] diff: add tests for --relative without optional prefix value

From: Jacob Keller <hidden>
Date: 2017-12-07 22:05:59

On Thu, Dec 7, 2017 at 1:50 PM, Junio C Hamano [off-list ref] wrote:
Jeff King [off-list ref] writes:
quoted
On Thu, Dec 07, 2017 at 11:01:35AM -0800, Jacob Keller wrote:
quoted
From: Jacob Keller <redacted>

We already have tests for --relative, but they currently only test when
a prefix has been provided. This fails to test the case where --relative
by itself should use the current directory as the prefix.

Teach the check_$type functions to take a directory argument to indicate
which subdirectory to run the git commands in. Add a new test which uses
this to test --relative without a prefix value.
This looks good to me (and I slightly prefer it over Junio's for the
simplicity).

I agree on the ordering suggestion Junio made.
I also prefer this one over the other one, provided if it is ported
on top of the preliminary clean-up I did in the other one.

Thanks.
Yea. I can do that if you want.

Thanks,
Jake
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help