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

Re: Short form of --force-with-lease

From
Kipras Melnikovas <kipras@kipras.org>
Date
Apr 11, 2024, 17:36 UTC
Message-ID
<20240411173639.81152-2-kipras@kipras.org>
In-Reply-To
<CADwVmK293eQ5VFkn-J68tXQ=64u3H79ScMW7H_ukSmtwLwA4wA@mail.gmail.com>
I have also thought about this.
I'd suggest a config option "push.forceFlagBehavior" that would allow to
configure the behavior, one of:
- "default" / "overwrite", which is currently -f,
- "lease" for --force-with-lease,
- "lease-includes"  for --force-with-lease --force-if-includes,
- possibly others.

Then, upon `git push -f`, the config option would be consulted to determine the behavior.

To get the default behavior, `-f -f` or `-F` could be used.
Previous: Wyatt CarpenterNext: rsbecker@nexbridge.com
Message 2 of 7 in “Short form of --force-with-lease”
  1. Wyatt CarpenterApr 11, 2024
  2. Kipras MelnikovasApr 11, 2024
  3. rsbecker@nexbridge.comApr 11, 2024
  4. Kipras MelnikovasApr 11, 2024
  5. Kyle LippincottApr 11, 2024
  6. Kipras MelnikovasApr 12, 2024
  7. Junio C HamanoApr 11, 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.