Re: Re: [PATCH] builtin/gc: warn when core.commitGraph is disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
>On Mon, May 10 2021, lilinchao@xxxxxxxxxx wrote:
>
>> From: Li Linchao <lilinchao@xxxxxxxxxx>
>>
>> Throw warning message when core.commitGraph is disabled in commit-graph
>> maintenance task.
>
>Won't this cause the gc.log issue noted in
>https://lore.kernel.org/git/87r1l27rae.fsf@xxxxxxxxxxxxxxxxxxx/
>
>More importantly, I don't think this UX makes sense. We said we didn't
>want it, so why warn about it?
>
>Maybe there are good reasons to, but this commit message / patch doesn't
>make the case for it...
> 
Forgive me, I don't know any of your previous discussions.
Sorry for disturbing.

>
>> Signed-off-by: Li Linchao <lilinchao@xxxxxxxxxx>
>> ---
>>  builtin/gc.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/builtin/gc.c b/builtin/gc.c
>> index 98a803196b..90684ca3b3 100644
>> --- a/builtin/gc.c
>> +++ b/builtin/gc.c
>> @@ -861,8 +861,10 @@ static int run_write_commit_graph(struct maintenance_run_opts *opts)
>>  static int maintenance_task_commit_graph(struct maintenance_run_opts *opts)
>>  {
>>  prepare_repo_settings(the_repository);
>> -	if (!the_repository->settings.core_commit_graph)
>> +	if (!the_repository->settings.core_commit_graph) {
>> +	warning(_("skipping commit-graph task because core.commitGraph is disabled"));
>>  return 0;
>> +	}
>
>>  close_object_store(the_repository->objects);
>>  if (run_write_commit_graph(opts)) {
>




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux