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.