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

Re: [PATCH v2] clean: improve -n and -f implementation and documentation

From
Sergey Organov <sorganov@gmail.com>
Date
Mar 4, 2024, 18:48 UTC
Message-ID
<878r2x96kd.fsf@osv.gnss.ru>
In-Reply-To
<xmqqa5ndq1op.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> Sergey Organov <sorganov@gmail.com> writes:
>
>> I wonder do you mean:
>> 
>> 	/* Dry run won't remove anything, so requiring force makes no
>> 	* sense. Interactive has its own means of protection, so don't
>> 	* require force as well */
>> 	if (dry_run || interactive)
>> 		require_force = 0;
>>
>> 	if (require_force != 0 && !force)
>>                 die_();
>> ...
>
> That is explained in a few messages after this one, so I'll wait
> until you read them all before responding ;-).
Ah, yeah, got it now! So no further response is needed.

Thanks, -- Sergey Organov

Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “Re: [PATCH v2] clean: improve -n and -f implementation and documentation”
  1. Junio C HamanoMar 3, 2024
  2. 1/1 clean: further clean-up of implementation around "--force"Junio C Hamano, Mar 3, 2024
  3. Junio C HamanoMar 3, 2024
  4. Sergey OrganovMar 4, 2024
  5. Sergey OrganovMar 4, 2024
  6. Junio C HamanoMar 4, 2024
  7. Sergey OrganovMar 4, 2024
  8. Junio C HamanoMar 4, 2024
  9. Sergey OrganovMar 4, 2024

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.