git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jacob Keller <jacob.keller@gmail.com>
Date
Dec 7, 2017, 22:05 UTC
Message-ID
<CA+P7+xoBrStdKtLZ+N3gkQTd1f+hX7D=ACdpk+9ou_NU7QxjFw@mail.gmail.com>
In-Reply-To
<xmqqtvx2b41s.fsf@gitster.mtv.corp.google.com>
On Thu, Dec 7, 2017 at 1:50 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 24 quoted lines
> Jeff King <peff@peff.net> writes:
>
>> On Thu, Dec 07, 2017 at 11:01:35AM -0800, Jacob Keller wrote:
>>
>>> From: Jacob Keller <jacob.keller@gmail.com>
>>>
>>> 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

Previous: Junio C Hamano
Message 7 of 7 in “diff: add tests for --relative without optional prefix value”
  1. diff: add tests for --relative without optional prefix valueJacob Keller, Dec 7, 2017
  2. Junio C HamanoDec 7, 2017
  3. Jacob KellerDec 7, 2017
  4. Jeff KingDec 7, 2017
  5. Jacob KellerDec 7, 2017
  6. Junio C HamanoDec 7, 2017
  7. Jacob KellerDec 7, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.