Re: [Bug] --simplify-by-decoration prints undecorated commit
- From
Aleksander Korzyński <ak@akorzy.net>
- Date
- Dec 20, 2024, 11:13 UTC
- Message-ID
- <CAEtHj8DUaDm7Hr+Dzc+K=F1MONj8u=GmuB1ju5kMU-swPa6Whw@mail.gmail.com>
- In-Reply-To
- <20241218120831.GA695807@coredump.intra.peff.net>
Hello Peff,
Thanks for the response.
-- Best regards, Aleksander Korzyński
On Wed, 18 Dec 2024 at 13:08, Jeff King <peff@peff.net> wrote:
Show 26 quoted lines
>
> On Mon, Dec 16, 2024 at 04:09:07PM +0100, Aleksander Korzyński wrote:
>
> > # Now, let's try --simplify-by-decoration on another commit
> > $ git log -1 --simplify-by-decoration --oneline 1e3ef455cc
> > 025a87d9db Merge branch 'master' into master
> > # The above output seems incorrect, because the commit isn't decorated
>
> Yes, but it's a merge commit. From "git help log":
>
> Note that extra commits can be shown to give a meaningful history.
>
> Try:
>
> git log --simplify-by-decoration --oneline --graph 1e3ef455cc
>
> and you'll see that there are commits along both parent branches, and
> thus we show the merge.
>
> There are some other options listed after that for changing which
> commits are shown ("The following options affect the way the
> simplification is performed"). But I don't think there is one that will
> show only the decorated commits (however, I could be wrong; I've only
> ever used these options to show _more_ commits, not fewer).
>
> -Peff