From: Kipras Melnikovas <kipras@kipras.org>
To: wyattscarpenter@gmail.com
Cc: git@vger.kernel.org
Subject: Re: Short form of --force-with-lease
Date: Thu, 11 Apr 2024 20:36:40 +0300 [thread overview]
Message-ID: <20240411173639.81152-2-kipras@kipras.org> (raw)
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.
next prev parent reply other threads:[~2024-04-11 18:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-11 17:16 Short form of --force-with-lease Wyatt Carpenter
2024-04-11 17:36 ` Kipras Melnikovas [this message]
2024-04-11 19:21 ` rsbecker
2024-04-11 20:32 ` Kipras Melnikovas
2024-04-11 20:58 ` Kyle Lippincott
2024-04-12 9:00 ` Kipras Melnikovas
2024-04-11 21:30 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240411173639.81152-2-kipras@kipras.org \
--to=kipras@kipras.org \
--cc=git@vger.kernel.org \
--cc=wyattscarpenter@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).