Re: [PATCH] partial-clone: add a partial-clone test case
- From
Derrick Stolee <derrickstolee@github.com>
- Date
- Mar 14, 2022, 16:25 UTC
- Message-ID
- <e38ebbfd-3ce4-6900-97e4-74b987c08b7d@github.com>
- In-Reply-To
- <20220314154638.59046-1-chakrabortyabhradeep79@gmail.com>
On 3/14/2022 11:46 AM, Abhradeep Chakraborty wrote:
Show 11 quoted lines
> Junio C Hamano <gitster@pobox.com> wrote: >> Why can't you specify what should NOT come before "fetch" in your >> use of this helper? > > Below is the event triggered for non-exact OID rename - > > git -c fetch.negotiationAlgorithm=noop fetch origin --no-tags --no-write-fetch-head --recurse-submodules=no --filter=blob:none --stdin > > Derrick told me to not depend on other flags like > `-c fetch.negotiationAlgorithm` etc. as they might be changed or omitted > and as it makes sense to me also. That's why I didn't specify those things.
This reason is something that could be mentioned in the commit message to motivate the change to the helper.
Show 9 quoted lines
>> I wonder if it was more like this that the original wanted to grep for: >> >> grep '"event":"child_start".*\["git","pack-objects",.*\]' > > I don't know about other cases, but in my case, atleast I really wanted > it. > > So, In this scenerio, should I stick with `test_subcommand_inexact` or I > have to see other helper functions (or make my own) for it?
As I mentioned earlier, it seems that
test_subcommand_inexact ! git fetch
would actually work for your needs without changing the helper. We will see whether or not the helper needs to be updated in a way that that line would not work anymore.
Thanks, -Stolee