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
Junio C Hamano <gitster@pobox.com>
Date
Mar 4, 2024, 18:41 UTC
Message-ID
<xmqqa5ndq1op.fsf@gitster.g>
In-Reply-To
<87h6hl96z7.fsf@osv.gnss.ru>
Sergey Organov <sorganov@gmail.com> writes:
Show 11 quoted lines
> 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 ;-).

Thanks.
Previous: Sergey OrganovNext: Sergey Organov
Message 6 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.