Re: Why doesn't `git log -m` imply `-p`?
- From
Alex Henrie <alexhenrie24@gmail.com>
- Date
- Apr 29, 2021, 17:24 UTC
- Message-ID
- <CAMMLpeQE5zY2KAu7rA=kGBGh5xeNUK8CRMf4FxKd-BoMjZzLJA@mail.gmail.com>
- In-Reply-To
- <87eeet9hhl.fsf@osv.gnss.ru>
On Thu, Apr 29, 2021 at 10:35 AM Sergey Organov <sorganov@gmail.com> wrote:
Show 16 quoted lines
> > Alex Henrie <alexhenrie24@gmail.com> writes: > > > On Thu, Apr 29, 2021 at 6:38 AM Sergey Organov <sorganov@gmail.com> wrote: > >> > >> As the final purpose of all this is to have -m as user-friendly short > >> option, I'd incline to finally let it imply -p, as --diff-merges=m now > >> covers another side of the coin. > >> > >> What do you think? > > > > I am 100% in favor of that proposal, and I can work on the code this > > weekend. > > No need to bother. If we agree, I'll send a patch atop of my recent > changes that make -m format configurable.
Great, thank you!
> Alternatively, we can add a configuration option, or let -m imply -p > only when -m format is explicitly configured by the user.
Since the goal here is simple, easily understandable, and user-friendly behavior, I think -m should imply -p all the time, or at least imply -p by default. The less I have to explain to new Git users, the better.
-Alex