From: Derrick Stolee <stolee@gmail.com>
To: Mehdi Zeinali <zeinali8@gmail.com>, git@vger.kernel.org
Subject: Re: Git log range reverse bug
Date: Wed, 16 May 2018 14:23:02 -0400 [thread overview]
Message-ID: <d95c41a0-853a-e66e-da00-065f3ccf3c47@gmail.com> (raw)
In-Reply-To: <CAJeoX+5ZGFS0yhXwaESzx4kTHn9AOLVF5d2MBU-Sr8JeQRBSxA@mail.gmail.com>
Hi Mendi,
On 5/16/2018 2:19 PM, Mehdi Zeinali wrote:
> Git Version: Version: 2.14.2
>
> When reversing a range in git log, it does not start from the expected commit:
>
> $ git show 8e11b4a41ec21e47fb0bf8b76e1edba739f57a9b
> commit 8e11b4a41ec21e47fb0bf8b76e1edba739f57a9b
> Author: Some Name <SomeName@SomeAddress.com>
> Date: Mon Nov 3 19:01:53 2014 +0000
> .
> .
> .
>
> $ git show
> Author: Some Other Name <SomeOtherName@SomeAddress.com>
> Date: Wed May 16 16:49:10 2018 +0000
> .
> .
> .
>
> $ git log --reverse 8e11b4a41ec21e47fb0bf8b76e1edba739f57a9b..HEAD
This command is asking for the commits reachable from HEAD but NOT
reachable from 8e11b4a41ec21e47fb0bf8b76e1edba739f57a9b. To see
8e11b4a41ec21e47fb0bf8b76e1edba739f57a9b in the results, you would need
to add "--boundary" to the command. That may still not show
8e11b4a41ec21e47fb0bf8b76e1edba739f57a9b as the first commit, as there
may be multiple, earlier boundary commits.
Thanks,
-Stolee
next prev parent reply other threads:[~2018-05-16 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-16 18:19 Git log range reverse bug Mehdi Zeinali
2018-05-16 18:23 ` Derrick Stolee [this message]
2018-05-16 21:02 ` Johannes Sixt
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=d95c41a0-853a-e66e-da00-065f3ccf3c47@gmail.com \
--to=stolee@gmail.com \
--cc=git@vger.kernel.org \
--cc=zeinali8@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).